From aa91b28a746a5c5f509b1dd455afcb96a765a8eb Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 May 2016 11:26:43 +0100 Subject: [PATCH] test-configure: use correct quoting CFLAGS, FOO, BAR may contain spaces. Signed-off-by: Simon McVittie --- tests/test-configure | 10 +++++----- tests/test.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test-configure b/tests/test-configure index 3f3e85ad..975b6ad9 100755 --- a/tests/test-configure +++ b/tests/test-configure @@ -7,14 +7,14 @@ fi cat < Makefile all: echo Building - if [ x\$(CFLAGS) != "x-O2 -g" ]; then exit 1; fi - if [ x\$(FOO) != xbar ]; then exit 1; fi - if [ x\$(BAR) != x2 ]; then exit 1; fi + if [ "x\$(CFLAGS)" != "x-O2 -g" ]; then exit 1; fi + if [ "x\$(FOO)" != xbar ]; then exit 1; fi + if [ "x\$(BAR)" != x2 ]; then exit 1; fi install: echo Installing - if [ x\$(FOO) != xbar ]; then exit 1; fi - if [ x\$(BAR) != x3 ]; then exit 1; fi + if [ "x\$(FOO)" != xbar ]; then exit 1; fi + if [ "x\$(BAR)" != x3 ]; then exit 1; fi mkdir -p /app/bin cp -a hello2.sh /app/bin/ mkdir -p /app/share diff --git a/tests/test.json b/tests/test.json index a0d715a8..a25756a0 100644 --- a/tests/test.json +++ b/tests/test.json @@ -29,7 +29,7 @@ "type": "file", "path": "test-configure", "dest-filename": "configure", - "sha256": "ce0a7014057cc45ac6cfa4b84fe848d46b1225f4ce03f1b52d5ab73521816cbf" + "sha256": "675a1ac2feec4d4f54e581b4b01bc3cfd2c1cf31aa5963574d31228c8a11b7e7" }, { "type": "file",