diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-10-01 10:02:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-10-01 10:02:46 +0000 |
commit | 16385d37f66e121d0ef045e679ade1fd1aec9afc (patch) | |
tree | e385f516b1dbb987bf374742bcedc6c278b0ced2 | |
parent | 21bac67b3e943616f25209f0ebd6ad23b2403d92 (diff) | |
parent | 1e1de5ed4dbbd4a002519fa642bf7f1cc41a825c (diff) |
Merge "Non-zero exit status should be used when teminated abnormally"
-rw-r--r-- | func/cli.py | 4 | ||||
-rw-r--r-- | func/spawn_vm.py | 2 |
2 files changed, 3 insertions, 3 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) diff --git a/func/spawn_vm.py b/func/spawn_vm.py index 7ac4340e..b467ab1f 100644 --- a/func/spawn_vm.py +++ b/func/spawn_vm.py @@ -69,7 +69,7 @@ class SpawnVM(Env_setup): mark = exc.problem_mark
print 'Error in qtip/heat/SampleHeat.yaml at: (%s,%s)' % (mark.line + 1, mark.column + 1)
print 'EXITING PROGRAM. Correct File and restart'
- sys.exit(0)
+ sys.exit(1)
fopen = open('./data/QtipKey.pub', 'r')
fopenstr = fopen.read()
fopenstr = fopenstr.rstrip()
|