From cd0cd3e5a5a099715c41ac9ad6f5697554d931c7 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Thu, 21 Apr 2016 10:39:19 +0200 Subject: Remove cleanup from vPing scripts, and use the existing cleanup script JIRA: FUNCTEST-215 Change-Id: I1ec494097a9b70de142da9f90136256535af5100 Signed-off-by: jose.lausuch --- docker/run_tests.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'docker/run_tests.sh') diff --git a/docker/run_tests.sh b/docker/run_tests.sh index f18f1d74b..c258136da 100755 --- a/docker/run_tests.sh +++ b/docker/run_tests.sh @@ -103,17 +103,16 @@ function run_test(){ "healthcheck") info "Running health check test..." ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/healthcheck.sh - clean_openstack ;; "vping_ssh") info "Running vPing-SSH test..." python ${FUNCTEST_REPO_DIR}/testcases/vPing/CI/libraries/vPing_ssh.py \ - $debug $clean_flag $report + $debug $report ;; "vping_userdata") info "Running vPing-userdata test... " python ${FUNCTEST_REPO_DIR}/testcases/vPing/CI/libraries/vPing_userdata.py \ - $debug $clean_flag $report + $debug $report ;; "odl") info "Running ODL test..." @@ -138,19 +137,16 @@ function run_test(){ if [ -f ${tempest_conf} ]; then cp $tempest_conf ${FUNCTEST_CONF_DIR} fi - clean_openstack ;; "vims") info "Running vIMS test..." python ${FUNCTEST_REPO_DIR}/testcases/vIMS/CI/vIMS.py \ $debug $clean_flag $report - clean_openstack ;; "rally") info "Running Rally benchmark suite..." python ${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py \ $debug $clean_flag all $report - clean_openstack ;; "bgpvpn") @@ -171,7 +167,6 @@ bgpvpn = True" >> /etc/tempest/tempest.conf ./run_tempest.sh -t -N -- networking_bgpvpn_tempest rm -rf /etc/tempest/tempest.conf popd - clean_openstack ;; "onos") info "Running ONOS test case..." @@ -185,7 +180,6 @@ bgpvpn = True" >> /etc/tempest/tempest.conf info "Running PROMISE test case..." python ${FUNCTEST_REPO_DIR}/testcases/features/promise.py $debug $report sleep 10 # to let the instances terminate - clean_openstack ;; "doctor") info "Running Doctor test..." @@ -196,6 +190,10 @@ bgpvpn = True" >> /etc/tempest/tempest.conf ${repos_dir}/ovno/Testcases/RunTests.sh ;; esac + + if [[ -n $clean_flag ]]; then + clean_openstack + fi } -- cgit 1.2.3-korg