Call system.exit if we run non existing group
Change-Id: I2448d824a0d3f052720dc9e495b44239a699fb67 Closes-Bug: #1545727
This commit is contained in:
parent
5053d23c4c
commit
e8eae3dc0e
@ -126,6 +126,9 @@ def run(**kwargs):
|
|||||||
else:
|
else:
|
||||||
register_system_test_cases(groups=[g])
|
register_system_test_cases(groups=[g])
|
||||||
groups_to_run.append(g)
|
groups_to_run.append(g)
|
||||||
|
if not set(groups_to_run) < set(get_groups()):
|
||||||
|
sys.exit('There are no cases mapped to current group, '
|
||||||
|
'please be sure that you put right test group name.')
|
||||||
if explain:
|
if explain:
|
||||||
print_explain(groups)
|
print_explain(groups)
|
||||||
else:
|
else:
|
||||||
@ -143,7 +146,6 @@ def explain_group(**kwargs):
|
|||||||
def show_all_groups(**kwargs):
|
def show_all_groups(**kwargs):
|
||||||
"""Show all Proboscis groups"""
|
"""Show all Proboscis groups"""
|
||||||
groups_nums = get_groups()
|
groups_nums = get_groups()
|
||||||
|
|
||||||
out = {k: len(v) for k, v in groups_nums.iteritems()}
|
out = {k: len(v) for k, v in groups_nums.iteritems()}
|
||||||
print(pretty_log(out))
|
print(pretty_log(out))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user