mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
do not use ls, but globs in for loop
This commit is contained in:
parent
2d3e6e282b
commit
8e663a1142
1 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ run_all_tests() {
|
||||||
current_test_number=1
|
current_test_number=1
|
||||||
|
|
||||||
# The list of test contains for example "TEST_UPGRADE some_commit_id
|
# 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
|
do
|
||||||
TEST_LAUNCHER $testfile
|
TEST_LAUNCHER $testfile
|
||||||
current_test_number=$((current_test_number+1))
|
current_test_number=$((current_test_number+1))
|
||||||
|
@ -384,7 +384,7 @@ SET_RESULT() {
|
||||||
|
|
||||||
at_least_one_install_succeeded () {
|
at_least_one_install_succeeded () {
|
||||||
|
|
||||||
for TEST in $(ls $TEST_CONTEXT/tests/*.json)
|
for TEST in "$TEST_CONTEXT"/tests/*.json
|
||||||
do
|
do
|
||||||
local test_id=$(basename $TEST | cut -d. -f1)
|
local test_id=$(basename $TEST | cut -d. -f1)
|
||||||
jq -e '. | select(.test_type == "TEST_INSTALL")' $TEST >/dev/null \
|
jq -e '. | select(.test_type == "TEST_INSTALL")' $TEST >/dev/null \
|
||||||
|
|
Loading…
Add table
Reference in a new issue