changeset 454:ed81c13a5cac

`py:exec` recipe command now reports an error for process exit codes <> 0. Should close #174.
author cmlenz
date Fri, 31 Aug 2007 16:31:13 +0000
parents e0b5a76359da
children dc2c565600a9
files bitten/build/pythontools.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/build/pythontools.py
+++ b/bitten/build/pythontools.py
@@ -119,8 +119,10 @@
                 return
 
     from bitten.build import shtools
-    shtools.execute(ctxt, executable=_python_path(ctxt), file_=file_,
-                    output=output, args=args)
+    returncode = shtools.execute(ctxt, executable=_python_path(ctxt),
+                                 file_=file_, output=output, args=args)
+    if returncode != 0:
+        ctxt.error('Executing %s failed (error code %s)' % (file_, returncode))
 
 def pylint(ctxt, file_=None):
     """Extract data from a ``pylint`` run written to a file.
Copyright (C) 2012-2017 Edgewall Software