Fix array of test in run_tests.sh 81/7181/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Mon, 18 Jan 2016 18:56:43 +0000 (19:56 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Mon, 18 Jan 2016 19:00:41 +0000 (20:00 +0100)
Change-Id: I06a33789f49bf5f7861b0d11fb54a10eb6ac5598
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
docker/run_tests.sh

index efcbbd2..18f4a27 100755 (executable)
@@ -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