[test] Exit lldb-dotest in a more Pythonic way.
As suggested by Keith Smiley in: https://github.com/apple/swift-lldb/pull/486 llvm-svn: 328966
This commit is contained in:
parent
9e3e7a99e8
commit
aa430c018f
|
|
@ -12,7 +12,5 @@ if __name__ == '__main__':
|
||||||
cmd = [dotest_path, '-q']
|
cmd = [dotest_path, '-q']
|
||||||
cmd.extend(dotest_args)
|
cmd.extend(dotest_args)
|
||||||
cmd.extend(wrapper_args)
|
cmd.extend(wrapper_args)
|
||||||
# Invoke dotest.py
|
# Invoke dotest.py and return exit code.
|
||||||
exit_code = subprocess.call(cmd)
|
sys.exit(subprocess.call(cmd))
|
||||||
if exit_code != 0:
|
|
||||||
sys.exit(exit_code)
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue