diff options
author | Steven Knight <knight@baldmt.com> | 2004-03-31 13:09:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-03-31 13:09:38 (GMT) |
commit | c56e4cfbc03b9177b258c726e3254e79dbbd2dc5 (patch) | |
tree | b49940bbd5ce49ce9b5a214fa2b8b2a0be447c77 /test/Command.py | |
parent | 67b6df08052c27473b85bfe5c7a39b3f730573ea (diff) | |
download | SCons-c56e4cfbc03b9177b258c726e3254e79dbbd2dc5.zip SCons-c56e4cfbc03b9177b258c726e3254e79dbbd2dc5.tar.gz SCons-c56e4cfbc03b9177b258c726e3254e79dbbd2dc5.tar.bz2 |
Fix the Command() global function when the action is a command-line string.
Diffstat (limited to 'test/Command.py')
-rw-r--r-- | test/Command.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/Command.py b/test/Command.py index 49a6ae3..2ee09db 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() |