[Lldb-commits] [lldb] r328966 - [test] Exit lldb-dotest in a more Pythonic way.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 2 03:44:36 PDT 2018
Author: jdevlieghere
Date: Mon Apr 2 03:44:36 2018
New Revision: 328966
URL: http://llvm.org/viewvc/llvm-project?rev=328966&view=rev
Log:
[test] Exit lldb-dotest in a more Pythonic way.
As suggested by Keith Smiley in:
https://github.com/apple/swift-lldb/pull/486
Modified:
lldb/trunk/test/lldb-dotest.in
Modified: lldb/trunk/test/lldb-dotest.in
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldb-dotest.in?rev=328966&r1=328965&r2=328966&view=diff
==============================================================================
--- lldb/trunk/test/lldb-dotest.in (original)
+++ lldb/trunk/test/lldb-dotest.in Mon Apr 2 03:44:36 2018
@@ -12,7 +12,5 @@ if __name__ == '__main__':
cmd = [dotest_path, '-q']
cmd.extend(dotest_args)
cmd.extend(wrapper_args)
- # Invoke dotest.py
- exit_code = subprocess.call(cmd)
- if exit_code != 0:
- sys.exit(exit_code)
+ # Invoke dotest.py and return exit code.
+ sys.exit(subprocess.call(cmd))
More information about the lldb-commits
mailing list