summaryrefslogtreecommitdiff
path: root/test/Command.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-03-31 13:09:38 +0000
committerSteven Knight <knight@baldmt.com>2004-03-31 13:09:38 +0000
commit36c526a3be47db75e1469de09da243ca66528998 (patch)
treeb49940bbd5ce49ce9b5a214fa2b8b2a0be447c77 /test/Command.py
parentb421b8da6d7925aaffe347c49d8851cb166e922e (diff)
downloadscons-36c526a3be47db75e1469de09da243ca66528998.tar.gz
Fix the Command() global function when the action is a command-line string.
Diffstat (limited to 'test/Command.py')
-rw-r--r--test/Command.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/Command.py b/test/Command.py
index 49a6ae3f..2ee09db9 100644
--- a/test/Command.py
+++ b/test/Command.py
@@ -77,7 +77,9 @@ env.Command(target = 'f3.out', source = 'f3.in',
Command(target = 'f4.out', source = 'sub', action = sub)
env.Command(target = 'f5.out', source = 'f5.in', action = buildIt,
XYZZY="XYZZY is set")
-""" % (python, python, python, python))
+Command(target = 'f6.out', source = 'f6.in',
+ action = r'%s' + " build.py f6.out f6.in")
+""" % (python, python, python, python, python))
test.write('f1.in', "f1.in\n")
test.write('f2.in', "f2.in\n")
@@ -86,13 +88,15 @@ test.write(['sub', 'f4a'], "sub/f4a\n")
test.write(['sub', 'f4b'], "sub/f4b\n")
test.write(['sub', 'f4c'], "sub/f4c\n")
test.write('f5.in', "f5.in\n")
+test.write('f6.in', "f6.in\n")
test.run(arguments = '.')
-test.fail_test(test.read('f1.out') != "f1.in\n")
-test.fail_test(test.read('f2.out') != "f2.in\n")
-test.fail_test(test.read('f3.out') != "f3.in\n")
-test.fail_test(test.read('f4.out') != "sub/f4a\nsub/f4b\nsub/f4c\n")
-test.fail_test(test.read('f5.out') != "XYZZY is set\nf5.in\n")
+test.must_match('f1.out', "f1.in\n")
+test.must_match('f2.out', "f2.in\n")
+test.must_match('f3.out', "f3.in\n")
+test.must_match('f4.out', "sub/f4a\nsub/f4b\nsub/f4c\n")
+test.must_match('f5.out', "XYZZY is set\nf5.in\n")
+test.must_match('f6.out', "f6.in\n")
test.pass_test()