[PATCH] D52350: When running the ios/iossim prepare script show the script output when it returns with a non-zero exit code.

Dan Liew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 24 07:24:15 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL342869: When running the ios/iossim prepare script show the script output when it… (authored by delcypher, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D52350

Files:
  compiler-rt/trunk/test/lit.common.cfg


Index: compiler-rt/trunk/test/lit.common.cfg
===================================================================
--- compiler-rt/trunk/test/lit.common.cfg
+++ compiler-rt/trunk/test/lit.common.cfg
@@ -157,7 +157,12 @@
   config.substitutions.append(('%device_rm', '{} rm '.format(run_wrapper)))
   config.compile_wrapper = compile_wrapper
 
-  prepare_output = subprocess.check_output([prepare_script, config.apple_platform, config.clang]).strip()
+  try:
+    prepare_output = subprocess.check_output([prepare_script, config.apple_platform, config.clang]).strip()
+  except subprocess.CalledProcessError as e:
+    print("Command failed:")
+    print(e.output)
+    raise e
   if len(prepare_output) > 0: print(prepare_output)
   prepare_output_json = prepare_output.split("\n")[-1]
   prepare_output = json.loads(prepare_output_json)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52350.166675.patch
Type: text/x-patch
Size: 836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180924/05065b07/attachment.bin>


More information about the llvm-commits mailing list