summaryrefslogtreecommitdiff
path: root/test/option-n.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-09-21 22:29:07 +0000
committerSteven Knight <knight@baldmt.com>2004-09-21 22:29:07 +0000
commit51fee8699e9d5f64a9ae5e06c0c1acaa7c084185 (patch)
tree27545b59a33400658211928d8c8e55efcfd9084d /test/option-n.py
parent7700eb55bbf0da1e084ea4bd29212a8560376f55 (diff)
downloadscons-51fee8699e9d5f64a9ae5e06c0c1acaa7c084185.tar.gz
Better test infrastructure for cleaning (-c) messages. (Kevin Quick)
Diffstat (limited to 'test/option-n.py')
-rw-r--r--test/option-n.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/option-n.py b/test/option-n.py
index 8730c835..aa0b8f2e 100644
--- a/test/option-n.py
+++ b/test/option-n.py
@@ -125,14 +125,7 @@ test.write('f1.out', "X1.out\n")
test.run(arguments = '-n f1.out', stdout = expect)
test.run(arguments = '-n f1.out', stdout = expect)
-def wrap_clean_stdout(string):
- return "scons: Reading SConscript files ...\n" + \
- "scons: done reading SConscript files.\n" + \
- "scons: Cleaning targets ...\n" + \
- string + \
- "scons: done cleaning targets.\n"
-
-expect = wrap_clean_stdout("Removed f1.out\nRemoved f2.out\n")
+expect = test.wrap_stdout("Removed f1.out\nRemoved f2.out\n", cleaning=1)
test.run(arguments = '-n -c ' + args, stdout = expect)