|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64348 - trunk/tools/build/v2/test
From: ghost_at_[hidden]
Date: 2010-07-26 03:51:20
Author: vladimir_prus
Date: 2010-07-26 03:51:18 EDT (Mon, 26 Jul 2010)
New Revision: 64348
URL: http://svn.boost.org/trac/boost/changeset/64348
Log:
When test fails and --preserve is set, also show the command line.
Text files modified:
trunk/tools/build/v2/test/BoostBuild.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/tools/build/v2/test/BoostBuild.py
==============================================================================
--- trunk/tools/build/v2/test/BoostBuild.py (original)
+++ trunk/tools/build/v2/test/BoostBuild.py 2010-07-26 03:51:18 EDT (Mon, 26 Jul 2010)
@@ -441,6 +441,7 @@
if "--python" in sys.argv:
kw['program'].append("--python")
kw['chdir'] = subdir
+ self.last_program_invocation = kw['program']
apply(TestCmd.TestCmd.run, [self], kw)
except:
self.dump_stdio()
@@ -553,6 +554,8 @@
elif os.path.exists(path):
raise "Path " + path + " already exists and is not a directory";
shutil.copytree(self.workdir, path)
+ print "The failed command was:"
+ print ' '.join(self.last_program_invocation)
at = TestCmd.caller(traceback.extract_stack(), 0)
annotation("stacktrace", at)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk