From e9b8b7e01f725ba04e35b16fce87e2c7676591a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Wed, 23 Sep 2020 12:16:43 +0200 Subject: [PATCH] tests/image: fix sudo invocation We need sudo arguments as a separate ones. --- schutzbot/run_image_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schutzbot/run_image_tests.sh b/schutzbot/run_image_tests.sh index 3e86cf51f..41377370a 100755 --- a/schutzbot/run_image_tests.sh +++ b/schutzbot/run_image_tests.sh @@ -62,7 +62,8 @@ run_test_case () { # Run the test and add the test name to the list of passed or failed # tests depending on the result. - if sudo "$TEST_CMD" 2>&1 | tee "${WORKSPACE}"/"${TEST_NAME}".log; then + # shellcheck disable=SC2086 # We need to pass multiple arguments here. + if sudo $TEST_CMD 2>&1 | tee "${WORKSPACE}"/"${TEST_NAME}".log; then PASSED_TESTS+=("$TEST_NAME") else FAILED_TESTS+=("$TEST_NAME")