diff options
author | Steven Knight <knight@baldmt.com> | 2004-08-05 20:00:20 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-08-05 20:00:20 (GMT) |
commit | 42629fe85a87b728d01c67e65bdbfde310744c63 (patch) | |
tree | f96bca18fdb063488c45f340ecf9a8d02902071f /test/SourceCode.py | |
parent | d7289a48cb622e56d940fc21c67ee6947a4d5ae1 (diff) | |
download | SCons-42629fe85a87b728d01c67e65bdbfde310744c63.zip SCons-42629fe85a87b728d01c67e65bdbfde310744c63.tar.gz SCons-42629fe85a87b728d01c67e65bdbfde310744c63.tar.bz2 |
Return lists of Nodes from all builders, not single Nodes when there's only one.
Diffstat (limited to 'test/SourceCode.py')
-rw-r--r-- | test/SourceCode.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/SourceCode.py b/test/SourceCode.py index de2653f..ea18004 100644 --- a/test/SourceCode.py +++ b/test/SourceCode.py @@ -76,18 +76,18 @@ test.write(['sub', 'sc-SConscript'], "'sub/sc-SConscript'\n") test.run(arguments = '.', stdout = test.wrap_stdout(read_str = """\ -sc_cat("%s", []) +sc_cat(["%s"], []) """ % (os.path.join('sub', 'SConscript')), build_str = """\ -sc_cat("%s", []) -cat("aaa.out", "%s") -sc_cat("%s", []) -cat("bbb.out", "%s") -sc_cat("%s", []) -cat("ccc.out", "%s") -cat("all", ["aaa.out", "bbb.out", "ccc.out"]) -sc_cat("%s", []) -cat("ddd.out", "%s") +sc_cat(["%s"], []) +cat(["aaa.out"], ["%s"]) +sc_cat(["%s"], []) +cat(["bbb.out"], ["%s"]) +sc_cat(["%s"], []) +cat(["ccc.out"], ["%s"]) +cat(["all"], ["aaa.out", "bbb.out", "ccc.out"]) +sc_cat(["%s"], []) +cat(["ddd.out"], ["%s"]) """ % (os.path.join('sub', 'aaa.in'), os.path.join('sub', 'aaa.in'), os.path.join('sub', 'bbb.in'), @@ -97,8 +97,8 @@ cat("ddd.out", "%s") os.path.join('sub2', 'ddd.in'), os.path.join('sub2', 'ddd.in')))) -test.fail_test(test.read(['sub', 'SConscript']) != "'sub/sc-SConscript'\n") -test.fail_test(test.read('all') != "sub/sc-aaa.in\nsub/sc-bbb.in\nsub/sc-ccc.in\n") -test.fail_test(test.read('ddd.out') != "sub2/sc-ddd.in\n") +test.must_match(['sub', 'SConscript'], "'sub/sc-SConscript'\n") +test.must_match('all', "sub/sc-aaa.in\nsub/sc-bbb.in\nsub/sc-ccc.in\n") +test.must_match('ddd.out', "sub2/sc-ddd.in\n") test.pass_test() |