aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/run_tests.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/docker/run_tests.sh b/docker/run_tests.sh
index efcbbd20..18f4a273 100755
--- a/docker/run_tests.sh
+++ b/docker/run_tests.sh
@@ -32,9 +32,10 @@ offline=false
report=""
# Get the list of runnable tests
# Check if we are in CI mode
-if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]]; then
- testcase=`cat /home/opnfv/functest/conf/testcase-list.txt`
- arr_test=("$testcase")
+tests_file="/home/opnfv/functest/conf/testcase-list.txt"
+if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]] &&\
+ [[ -f $tests_file ]]; then
+ arr_test=($(cat $tests_file))
else
arr_test=(vping tempest vims rally)
fi