[test] Exit lldb-dotest in a more Pythonic way.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 2 Apr 2018 10:44:36 +0000 (10:44 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 2 Apr 2018 10:44:36 +0000 (10:44 +0000)
As suggested by Keith Smiley in:
https://github.com/apple/swift-lldb/pull/486

llvm-svn: 328966

lldb/test/lldb-dotest.in

index 69da3cf..c6cd8cb 100755 (executable)
@@ -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))