aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-14 11:45:19 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-01-14 13:44:20 +0100
commitcdf5e6a2fd05f07a5db92175777113d732258a94 (patch)
treefb62a35e92d7618be1a8018d03eac527749926d7 /docker
parent04d586e1563dd263bf1e7aeb052c9d397ecf5c8a (diff)
set up mechanism to tun only runnable tests in CI based on scenario
JIRA: FUNCTEST-119 Change-Id: I342c027c79fab1cc9fa65ddf8222e7b12b946af8 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/run_tests.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/docker/run_tests.sh b/docker/run_tests.sh
index bc026d92..46fe6cd5 100755
--- a/docker/run_tests.sh
+++ b/docker/run_tests.sh
@@ -30,7 +30,14 @@ examples:
# NOTE: Still not 100% working when running the tests
offline=false
report=""
-arr_test=(vping odl tempest vims rally)
+# Get the list of runnable tests
+# Check if we are in CI mode
+if [ -n "$DEPLOY_SCENARIO" ]; then
+ testcase=`cat /home/opnfv/functest/conf/testcase-list.txt`
+ arr_test=("$testcase")
+elif
+ arr_test=(vping odl tempest vims rally)
+fi
function clean_openstack(){
python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py \