From fe9398fe87328508ac73f7e31950ab941d0ed162 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 5 Sep 2019 11:32:28 +0100 Subject: [PATCH] scripts: Fix integration tests script Running the integration test script showed the following error: + '[' '!' -f /home/rob/workloads/virtiofsd scripts/run_integration_tests.sh: line 84: [: missing `]' + -f /home/rob/workloads/vubridge ']' scripts/run_integration_tests.sh: line 84: -f: command not found This was preventing the test from reusing build QEMU artifacts. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index c916c91a7..64774e28c 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -81,7 +81,7 @@ fi VIRTIOFSD="$WORKLOADS_DIR/virtiofsd" VUBRIDGE="$WORKLOADS_DIR/vubridge" QEMU_DIR="qemu_build" -if [ ! -f "$VIRTIOFSD" || ! -f "$VUBRIDGE" ]; then +if [ ! -f "$VIRTIOFSD" ] || [ ! -f "$VUBRIDGE" ]; then pushd $WORKLOADS_DIR git clone --depth 1 "https://github.com/sboeuf/qemu.git" -b "virtio-fs" $QEMU_DIR pushd $QEMU_DIR