summaryrefslogtreecommitdiffstats
path: root/docker/run_tests.sh
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-01-19 00:13:27 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-01-19 09:05:23 +0000
commit7652f639c52d88379444a5de049408bc56e4c37e (patch)
tree94fa65eebafcc342bc63a04822414812fc68296a /docker/run_tests.sh
parent54c95ca55ba7b7429a78d3c802952addd3771b46 (diff)
Remove --offline flag
Also, add extra info messages for debugging purposes. Change-Id: Ia5a26978817b1a7c00d2a3deb497a407e8805b5d Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit a705adb5cfc718a205faee1f463522ba41cb2b34)
Diffstat (limited to 'docker/run_tests.sh')
-rwxr-xr-xdocker/run_tests.sh26
1 files changed, 15 insertions, 11 deletions
diff --git a/docker/run_tests.sh b/docker/run_tests.sh
index 18f4a2733..cb6fb0c80 100755
--- a/docker/run_tests.sh
+++ b/docker/run_tests.sh
@@ -10,10 +10,9 @@
usage="Script to trigger the tests automatically.
usage:
- bash $(basename "$0") [--offline] [-h|--help] [-t <test_name>]
+ bash $(basename "$0") [-h|--help] [-t <test_name>]
where:
- -o|--offline optional offline mode (experimental)
-h|--help show this help text
-r|--report push results to database (false by default)
-t|--test run specific set of tests
@@ -23,7 +22,7 @@ where:
examples:
$(basename "$0")
$(basename "$0") --test vping,odl
- $(basename "$0") --offline -t tempest,rally"
+ $(basename "$0") -t tempest,rally"
# Support for Functest offline
@@ -32,13 +31,7 @@ offline=false
report=""
# Get the list of runnable tests
# Check if we are in CI mode
-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
+
function clean_openstack(){
echo -e "\n\nCleaning Openstack environment..."
@@ -175,6 +168,17 @@ while [[ $# > 0 ]]
shift # past argument or value
done
+
+tests_file="/home/opnfv/functest/conf/testcase-list.txt"
+if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]] &&\
+ [[ -f $tests_file ]]; then
+ echo "testcase-list.txt content:";cat $test_file; echo ""
+ arr_test=($(cat $tests_file))
+else
+ arr_test=(vping tempest vims rally)
+fi
+echo "arr_test: "${arr_test[@]}
+
BASEDIR=`dirname $0`
source ${BASEDIR}/common.sh
@@ -213,7 +217,7 @@ if [ "${TEST}" != "" ]; then
run_test $i
done
else
- info "Executing all the tests"
+ info "Executing tests..."
for i in "${arr_test[@]}"; do
run_test $i
done