From e8eae3dc0e57b9a9d3b66c7cdcbcc10f560c1fef Mon Sep 17 00:00:00 2001 From: Tatyana Leontovich Date: Tue, 16 Feb 2016 13:33:55 +0200 Subject: [PATCH] Call system.exit if we run non existing group Change-Id: I2448d824a0d3f052720dc9e495b44239a699fb67 Closes-Bug: #1545727 --- run_system_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_system_test.py b/run_system_test.py index a7fc8398d..be30ac215 100755 --- a/run_system_test.py +++ b/run_system_test.py @@ -126,6 +126,9 @@ def run(**kwargs): else: register_system_test_cases(groups=[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: print_explain(groups) else: @@ -143,7 +146,6 @@ def explain_group(**kwargs): def show_all_groups(**kwargs): """Show all Proboscis groups""" groups_nums = get_groups() - out = {k: len(v) for k, v in groups_nums.iteritems()} print(pretty_log(out))