summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-18 07:43:08 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-18 07:43:08 (GMT)
commit727266233825f379a02fc3a32c1fa46d1ffb1fe8 (patch)
treeb4c303b7a82d84c5b1129d5a1f866df672464966 /etc
parent5401afc920c34379547d06db33b77fd076e4ed18 (diff)
downloadSCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.zip
SCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.tar.gz
SCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.tar.bz2
Have the closing message say ...terminated
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index 59b0647..ede575d 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -244,16 +244,20 @@ class TestSCons(TestCmd.TestCmd):
return None
return env.Detect([prog])
- def wrap_stdout(self, build_str = "", read_str = ""):
+ def wrap_stdout(self, build_str = "", read_str = "", error = 0):
"""Wraps standard output string(s) in the normal
"Reading ... done" and "Building ... done" strings
"""
+ if error:
+ term = "scons: building terminated because of errors.\n"
+ else:
+ term = "scons: done building targets.\n"
return "scons: Reading SConscript files ...\n" + \
read_str + \
"scons: done reading SConscript files.\n" + \
"scons: Building targets ...\n" + \
build_str + \
- "scons: done building targets.\n"
+ term
def up_to_date(self, options = None, arguments = None, **kw):
s = ""