diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-19 12:07:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-19 12:07:28 (GMT) |
commit | 21d1baa81a1e83002c197c8a49a81417856ce15d (patch) | |
tree | 013172220300ad340441d80572d586327376dc5b /etc/TestSCons.py | |
parent | bc2f74e89accaaa97ba76f4f556c6f14f9a8cc8e (diff) | |
download | SCons-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.py | 6 |
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 ==========" |