From c84024e777a124bc3a6ac875e3d8504de855a937 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 10 Feb 2016 18:14:52 +0100 Subject: Add -n|--no-clean flag to vPing,Tempest,Rally,vIMS scripts Use --no-clean flag in run_tests.sh to tell the test scripts to cleanup or not the resources Change-Id: I597eca5199e1eaf16b1f03a223222d33e4adf170 Signed-off-by: jose.lausuch (cherry picked from commit abc81e24d33b9bf8d2f8fb05dc5f5f57443abe93) --- testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py') diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py index e1870046c..9a9260eb8 100755 --- a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py +++ b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py @@ -54,6 +54,9 @@ parser.add_argument("-s", "--smoke", parser.add_argument("-v", "--verbose", help="Print verbose info about the progress", action="store_true") +parser.add_argument("-n", "--noclean", + help="Don't clean the created resources for this test.", + action="store_true") args = parser.parse_args() @@ -455,6 +458,9 @@ def main(): logger.debug("Pushing Rally summary into DB...") push_results_to_db("Rally", payload) + if args.noclean: + exit(0) + logger.debug("Deleting image '%s' with ID '%s'..." \ % (GLANCE_IMAGE_NAME, image_id)) if not functest_utils.delete_glance_image(nova_client, image_id): -- cgit 1.2.3-korg