From e860695b96e11e3039a6e35c53e36f1351980109 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 19 Sep 2001 12:07:28 +0000 Subject: [PATCH] Still better error reporting in TestSCons.py. git-svn-id: http://scons.tigris.org/svn/scons/trunk@54 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- etc/TestSCons.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/TestSCons.py b/etc/TestSCons.py index 41a0ef0e..fbc53bac 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 ==========" -- 2.26.2