diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-10-01 00:42:42 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-10-01 00:42:46 +0800 |
commit | 1e1de5ed4dbbd4a002519fa642bf7f1cc41a825c (patch) | |
tree | 8944826a1ebb77b2b5ec359c77f77f254339ec04 /func/cli.py | |
parent | 210bb32b021d2da8191a11dfbc6eb6e75563f2a4 (diff) |
Non-zero exit status should be used when teminated abnormally
Change-Id: I6034b3735ebf412ef4c11c837a42f121161a70b2
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'func/cli.py')
-rw-r--r-- | func/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/func/cli.py b/func/cli.py index 66ab2277..f91615e2 100644 --- a/func/cli.py +++ b/func/cli.py @@ -39,12 +39,12 @@ class cli: args = self._parse_args(args) if not args_handler.check_suit_in_test_list(args.file): print('\n\n ERROR: Test File Does not exist in test_list/ please enter correct file \n\n') - sys.exit(0) + sys.exit(1) if not args_handler.check_lab_name(args.lab): print('\n\n You have specified a lab that is not present in test_cases/ please enter \ correct file. If unsure how to proceed, use -l default.\n\n') - sys.exit(0) + sys.exit(1) suite = args.file benchmarks = args_handler.get_files_in_test_list(suite) test_cases = args_handler.get_files_in_test_case(args.lab, suite) |