add option osmo-gsm-tester.py --suites-file my-suites-listing.conf
For example, run with '-S handover-suites.conf' to just do the handover tests. Change-Id: If896ac84d02a275deda2f20a93c29312df128ebb
This commit is contained in:
parent
fb8c02fbd5
commit
1e01a68846
|
@ -109,6 +109,11 @@ def main():
|
|||
parser.add_argument('-s', '--suite-scenario', dest='suite_scenario', action='append',
|
||||
help='''A suite-scenarios combination
|
||||
like suite:scenario+scenario''')
|
||||
parser.add_argument('-S', '--suites-file', dest='suites_file', action='append',
|
||||
default=[],
|
||||
help='''Read suites to run from a yml listing,
|
||||
like default-suites.conf. The path is relative to
|
||||
--conf-path.''')
|
||||
parser.add_argument('-t', '--test', dest='test', action='append',
|
||||
help='''Run only tests matching this name.
|
||||
Any test name that contains the given string is run.
|
||||
|
@ -151,6 +156,12 @@ optional.''')
|
|||
|
||||
combination_strs = list(args.suite_scenario or [])
|
||||
|
||||
for suites_file in args.suites_file:
|
||||
suites_file = config.main_config_path_to_abspath(suites_file)
|
||||
from_this_file = config.read(suites_file)
|
||||
print(('Running suites from %r:\n ' % suites_file) + ('\n '.join(from_this_file)))
|
||||
combination_strs.extend(from_this_file)
|
||||
|
||||
if not combination_strs:
|
||||
combination_strs = config.read_config_file(config.CFG_DEFAULT_SUITES_CONF, if_missing_return=[])
|
||||
|
||||
|
|
Loading…
Reference in New Issue