[llvm] r253032 - [lit] Improve error message when lit fails to executable a command by

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 03:38:10 PST 2015


Author: delcypher
Date: Fri Nov 13 05:38:07 2015
New Revision: 253032

URL: http://llvm.org/viewvc/llvm-project?rev=253032&view=rev
Log:
[lit] Improve error message when lit fails to executable a command by
showing the executable it tried to use.

Modified:
    llvm/trunk/utils/lit/lit/TestRunner.py

Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=253032&r1=253031&r2=253032&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Nov 13 05:38:07 2015
@@ -207,7 +207,7 @@ def executeShCmd(cmd, shenv, results):
                                           env = cmd_shenv.env,
                                           close_fds = kUseCloseFDs))
         except OSError as e:
-            raise InternalShellError(j, 'Could not create process due to {}'.format(e))
+            raise InternalShellError(j, 'Could not create process ({}) due to {}'.format(executable, e))
 
         # Immediately close stdin for any process taking stdin from us.
         if stdin == subprocess.PIPE:




More information about the llvm-commits mailing list