test/common: Drop single quotes in --extra-cflags arg

Since '' are placed within "" they are treated as literal part of the
argument passed to configure. Due to that, configure fails to run cc
since all -W flags are treated as one.

Change-Id: I69e182f308628cc5b63bd363d3a47cf87336a59a
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1024
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Michal Berger 2020-02-26 13:14:21 +01:00 committed by Tomasz Zawadzki
parent 2ce1406a59
commit e4c26938a4

View File

@ -220,7 +220,7 @@ function install_qemu()
declare -a opt_params=("--prefix=/usr/local/qemu/$SPDK_QEMU_BRANCH") declare -a opt_params=("--prefix=/usr/local/qemu/$SPDK_QEMU_BRANCH")
if [ "$PACKAGEMNG" = "pacman" ]; then if [ "$PACKAGEMNG" = "pacman" ]; then
# GCC 9 on ArchLinux fails to compile Qemu due to some old warnings which were not detected by older versions. # GCC 9 on ArchLinux fails to compile Qemu due to some old warnings which were not detected by older versions.
opt_params+=("--extra-cflags='-Wno-error=stringop-truncation -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types -Wno-error=format-truncation'") opt_params+=("--extra-cflags=-Wno-error=stringop-truncation -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types -Wno-error=format-truncation")
opt_params+=("--disable-glusterfs") opt_params+=("--disable-glusterfs")
fi fi