diff options
author | Steven Knight <knight@baldmt.com> | 2002-06-05 23:35:56 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-06-05 23:35:56 +0000 |
commit | 2f7d4f660fd048edc342a989d25c94d7b52ab13e (patch) | |
tree | 20def5c6f0f7b68ab7151cac4ada5c470a3b31e0 /test/builderrors.py | |
parent | 42717c855f7cbb73d3017ac243a34491d3cc0c53 (diff) | |
download | scons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.gz |
Changes from Charles Crain.
Diffstat (limited to 'test/builderrors.py')
-rw-r--r-- | test/builderrors.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/builderrors.py b/test/builderrors.py index 8a574dbb..286b115e 100644 --- a/test/builderrors.py +++ b/test/builderrors.py @@ -46,9 +46,9 @@ sys.exit(exitval) """) test.write(['one', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES') -B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES') -env = Environment(BUILDERS = [B0, B1]) +B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES') +B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES') +env = Environment(BUILDERS = { 'B0' : B0, 'B1' : B1 }) env.B1(target = 'f1.out', source = 'f1.in') env.B0(target = 'f2.out', source = 'f2.in') env.B0(target = 'f3.out', source = 'f3.in') @@ -66,9 +66,9 @@ test.fail_test(os.path.exists(test.workpath('f2.out'))) test.fail_test(os.path.exists(test.workpath('f3.out'))) test.write(['two', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES') -B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES') -env = Environment(BUILDERS = [B0, B1]) +B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES') +B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES') +env = Environment(BUILDERS = { 'B0': B0, 'B1' : B1 }) env.B0(target = 'f1.out', source = 'f1.in') env.B1(target = 'f2.out', source = 'f2.in') env.B0(target = 'f3.out', source = 'f3.in') @@ -86,9 +86,9 @@ test.fail_test(os.path.exists(test.workpath('f2.out'))) test.fail_test(os.path.exists(test.workpath('f3.out'))) test.write(['three', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = r'%s ../build.py 0 $TARGET $SOURCES') -B1 = Builder(name = 'B1', action = r'%s ../build.py 1 $TARGET $SOURCES') -env = Environment(BUILDERS = [B0, B1]) +B0 = Builder(action = r'%s ../build.py 0 $TARGET $SOURCES') +B1 = Builder(action = r'%s ../build.py 1 $TARGET $SOURCES') +env = Environment(BUILDERS = { 'B0' : B0, 'B1': B1 }) env.B0(target = 'f1.out', source = 'f1.in') env.B0(target = 'f2.out', source = 'f2.in') env.B1(target = 'f3.out', source = 'f3.in') |