[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:
Jonas Devlieghere 2018-04-02 10:44:36 +00:00
parent 9e3e7a99e8
commit aa430c018f
1 changed files with 2 additions and 4 deletions

View File

@ -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)