summaryrefslogtreecommitdiffstats
path: root/docker/run_tests.sh
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-01-18 19:56:43 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-01-18 20:00:32 +0000
commit54c95ca55ba7b7429a78d3c802952addd3771b46 (patch)
tree14509fb367a007d5247d366ab9777b7e94750391 /docker/run_tests.sh
parentb51df39dfe21ec41b061ab04a1390e106e2860ab (diff)
Fix array of test in run_tests.sh
Change-Id: I06a33789f49bf5f7861b0d11fb54a10eb6ac5598 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 7256a2b3ad02e338c8e80d4e9f1561032340a307)
Diffstat (limited to 'docker/run_tests.sh')
-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 efcbbd20c..18f4a2733 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