diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-18 07:43:08 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-18 07:43:08 (GMT) |
commit | 727266233825f379a02fc3a32c1fa46d1ffb1fe8 (patch) | |
tree | b4c303b7a82d84c5b1129d5a1f866df672464966 /etc/TestSCons.py | |
parent | 5401afc920c34379547d06db33b77fd076e4ed18 (diff) | |
download | SCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.zip SCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.tar.gz SCons-727266233825f379a02fc3a32c1fa46d1ffb1fe8.tar.bz2 |
Have the closing message say ...terminated
Diffstat (limited to 'etc/TestSCons.py')
-rw-r--r-- | etc/TestSCons.py | 8 |
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 = "" |