tests/image: fix sudo invocation
We need sudo arguments as a separate ones.
This commit is contained in:
parent
ad969cdda7
commit
e9b8b7e01f
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue