@@ -22,10 +22,11 @@ export LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib
2222
2323if [ -n " $PREVIOUS_RELEASES_TO_DOWNLOAD " ]; then
2424 echo " Downloading previous releases: $PREVIOUS_RELEASES_TO_DOWNLOAD "
25+ # shellcheck disable=SC2086
2526 ./test/get_previous_releases.py -b -t " $PREVIOUS_RELEASES_DIR " ${PREVIOUS_RELEASES_TO_DOWNLOAD}
2627fi
2728
28- cd build-ci/dashcore-$BUILD_TARGET
29+ cd " build-ci/dashcore-$BUILD_TARGET "
2930
3031if [ " $SOCKETEVENTS " = " " ]; then
3132 # Let's switch socketevents mode to some random mode
@@ -42,29 +43,30 @@ echo "Using socketevents mode: $SOCKETEVENTS"
4243EXTRA_ARGS=" --dashd-arg=-socketevents=$SOCKETEVENTS "
4344
4445set +e
45- LD_LIBRARY_PATH=$DEPENDS_DIR /$HOST /lib ./test/functional/test_runner.py --ci --attempts=3 --ansi --combinedlogslen=4000 --timeout-factor=${TEST_RUNNER_TIMEOUT_FACTOR} ${TEST_RUNNER_EXTRA} --failfast --nocleanup --tmpdir=$( pwd) /testdatadirs $PASS_ARGS $EXTRA_ARGS
46+ # shellcheck disable=SC2086
47+ LD_LIBRARY_PATH=" $DEPENDS_DIR /$HOST /lib" ./test/functional/test_runner.py --ci --attempts=3 --ansi --combinedlogslen=4000 --timeout-factor=" ${TEST_RUNNER_TIMEOUT_FACTOR} " ${TEST_RUNNER_EXTRA} --failfast --nocleanup --tmpdir=" $( pwd) /testdatadirs" $PASS_ARGS $EXTRA_ARGS
4648RESULT=$?
4749set -e
4850
4951echo " Collecting logs..."
50- BASEDIR=$( ls testdatadirs)
52+ BASEDIR=" $( ls testdatadirs) "
5153if [ " $BASEDIR " != " " ]; then
5254 mkdir testlogs
53- TESTDATADIRS=$( ls testdatadirs/$BASEDIR )
55+ TESTDATADIRS=$( ls " testdatadirs/$BASEDIR " )
5456 for d in $TESTDATADIRS ; do
5557 [[ " $d " ]] || break # found nothing
5658 [[ " $d " != " cache" ]] || continue # skip cache dir
57- mkdir testlogs/$d
58- PYTHONIOENCODING=UTF-8 ./test/functional/combine_logs.py -c ./testdatadirs/$BASEDIR /$d > ./testlogs/$d /combined.log
59+ mkdir " testlogs/$d "
60+ PYTHONIOENCODING=UTF-8 ./test/functional/combine_logs.py -c " ./testdatadirs/$BASEDIR /$d " > " ./testlogs/$d /combined.log"
5961 # Disabled creation of combined.html: 40% smaller CI job artifacts
6062 # PYTHONIOENCODING=UTF-8 ./test/functional/combine_logs.py --html ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.html
61- cd testdatadirs/$BASEDIR /$d
63+ cd " testdatadirs/$BASEDIR /$d "
6264 LOGFILES=" $( find . -name ' debug.log' -or -name " test_framework.log" ) "
6365 cd ../../..
6466 for f in $LOGFILES ; do
65- d2=" testlogs/$d /$( dirname $f ) "
66- mkdir -p $d2
67- cp testdatadirs/$BASEDIR /$d /$f $d2 /
67+ d2=" testlogs/$d /$( dirname " $f " ) "
68+ mkdir -p " $d2 "
69+ cp " testdatadirs/$BASEDIR /$d /$f " " $d2 /"
6870 done
6971 done
7072fi
0 commit comments