diff options
author | Viktor Tikkanen <viktor.tikkanen@nokia.com> | 2016-02-11 09:04:30 +0200 |
---|---|---|
committer | Viktor Tikkanen <viktor.tikkanen@nokia.com> | 2016-02-11 09:07:44 +0200 |
commit | 66df82a76334015e3e2d25ddcc22b343b110320c (patch) | |
tree | a55d1771611edfb67704f0b84516ffaac6e05b60 /testcases/VIM/OpenStack/CI/libraries/run_tempest.py | |
parent | 188aef4912beee7a8eb87272de1500a1bded99f0 (diff) |
Enadled --serial option for run_tests.sh
It could be useful to execute e.g. Tempest test cases in a single
thread in order to troubleshoot possible concurrency problems.
Change-Id: I5e5fc190fb4483ff075a8f837a8d4116ece90c80
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries/run_tempest.py')
-rw-r--r-- | testcases/VIM/OpenStack/CI/libraries/run_tempest.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py index 9638a274d..294669182 100644 --- a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py +++ b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py @@ -33,8 +33,14 @@ modes = ['full', 'smoke', 'baremetal', 'compute', 'data_processing', """ tests configuration """ parser = argparse.ArgumentParser() -parser.add_argument("-d", "--debug", help="Debug mode", action="store_true") -parser.add_argument("-m", "--mode", help="Tempest test mode [smoke, all]", +parser.add_argument("-d", "--debug", + help="Debug mode", + action="store_true") +parser.add_argument("-s", "--serial", + help="Run tests in one thread", + action="store_true") +parser.add_argument("-m", "--mode", + help="Tempest test mode [smoke, all]", default="smoke") parser.add_argument("-r", "--report", help="Create json result file", @@ -292,6 +298,9 @@ def main(): else: MODE = "--set "+args.mode + if args.serial: + MODE = "--concur 1 "+MODE + if not os.path.exists(TEMPEST_RESULTS_DIR): os.makedirs(TEMPEST_RESULTS_DIR) |