summaryrefslogtreecommitdiffstats
path: root/etc/TestSCons.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-19 12:07:28 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-19 12:07:28 (GMT)
commit21d1baa81a1e83002c197c8a49a81417856ce15d (patch)
tree013172220300ad340441d80572d586327376dc5b /etc/TestSCons.py
parentbc2f74e89accaaa97ba76f4f556c6f14f9a8cc8e (diff)
downloadSCons-21d1baa81a1e83002c197c8a49a81417856ce15d.zip
SCons-21d1baa81a1e83002c197c8a49a81417856ce15d.tar.gz
SCons-21d1baa81a1e83002c197c8a49a81417856ce15d.tar.bz2
Still better error reporting in TestSCons.py.
Diffstat (limited to 'etc/TestSCons.py')
-rw-r--r--etc/TestSCons.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index 41a0ef0..fbc53ba 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -85,7 +85,7 @@ class TestSCons(TestCmd.TestCmd):
print self.stderr()
raise
if self.status:
- print self.progam + " returned " + (self.status >> 8)
+ print "%s returned %d" % (self.program, self.status >> 8)
print "STDERR ============"
print self.stderr()
raise TestFailed
@@ -94,6 +94,10 @@ class TestSCons(TestCmd.TestCmd):
print stdout
print "Actual STDOUT ============"
print self.stdout()
+ stderr = self.stderr()
+ if stderr:
+ print "STDERR ==================="
+ print stderr
raise TestFailed
if stderr and not self.match(self.stderr(), stderr):
print "Expected STDERR =========="