2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Show *full* build command on failure

[SVN r13624]
This commit is contained in:
Dave Abrahams
2002-05-02 19:00:38 +00:00
parent d447258a56
commit 38ef897e25
2 changed files with 10 additions and 2 deletions

View File

@@ -101,11 +101,15 @@ class Tester(TestCmd.TestCmd):
print "STDERR ============"
print self.stderr()
raise
if _failed(self, status):
expect = ''
if status != 0:
expect = " (expected %d)" % status
print "%s returned %d%s" % (self.program, _status(self), expect)
print '"%s %s" returned %d%s' % (
self.program, extra_args, _status(self), expect)
print "STDOUT ============"
print self.stdout()
print "STDERR ============"

View File

@@ -101,11 +101,15 @@ class Tester(TestCmd.TestCmd):
print "STDERR ============"
print self.stderr()
raise
if _failed(self, status):
expect = ''
if status != 0:
expect = " (expected %d)" % status
print "%s returned %d%s" % (self.program, _status(self), expect)
print '"%s %s" returned %d%s' % (
self.program, extra_args, _status(self), expect)
print "STDOUT ============"
print self.stdout()
print "STDERR ============"