From 2f3d438bd74f39deaca80cd8adbc9a636ccb3227 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Thu, 14 Jan 2016 11:45:19 +0100 Subject: set up mechanism to tun only runnable tests in CI based on scenario JIRA: FUNCTEST-119 Change-Id: I342c027c79fab1cc9fa65ddf8222e7b12b946af8 Signed-off-by: Morgan Richomme (cherry picked from commit cdf5e6a2fd05f07a5db92175777113d732258a94) --- docker/run_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/run_tests.sh b/docker/run_tests.sh index bc026d92f..46fe6cd57 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 \ -- cgit 1.2.3-korg