do not use ls, but globs in for loop

This commit is contained in:
Kay0u 2021-10-12 13:49:17 +02:00
parent 2d3e6e282b
commit 8e663a1142
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -286,7 +286,7 @@ run_all_tests() {
current_test_number=1
# The list of test contains for example "TEST_UPGRADE some_commit_id
for testfile in $(ls $TEST_CONTEXT/tests/*.json);
for testfile in "$TEST_CONTEXT"/tests/*.json;
do
TEST_LAUNCHER $testfile
current_test_number=$((current_test_number+1))
@ -384,7 +384,7 @@ SET_RESULT() {
at_least_one_install_succeeded () {
for TEST in $(ls $TEST_CONTEXT/tests/*.json)
for TEST in "$TEST_CONTEXT"/tests/*.json
do
local test_id=$(basename $TEST | cut -d. -f1)
jq -e '. | select(.test_type == "TEST_INSTALL")' $TEST >/dev/null \