summaryrefslogtreecommitdiffstats
path: root/test/option-j.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-10-21 04:00:25 (GMT)
committerSteven Knight <knight@baldmt.com>2003-10-21 04:00:25 (GMT)
commitd716ab9ee632b5b7c086aca326abdffa4891cb5f (patch)
tree252836106c4d51843832fe7bf518a4e47123aa5f /test/option-j.py
parent7e8e9218735c50093658d386c2d2be8087486512 (diff)
downloadSCons-d716ab9ee632b5b7c086aca326abdffa4891cb5f.zip
SCons-d716ab9ee632b5b7c086aca326abdffa4891cb5f.tar.gz
SCons-d716ab9ee632b5b7c086aca326abdffa4891cb5f.tar.bz2
Test portability for win32.
Diffstat (limited to 'test/option-j.py')
-rw-r--r--test/option-j.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/option-j.py b/test/option-j.py
index 9af8179..cb1a88a 100644
--- a/test/option-j.py
+++ b/test/option-j.py
@@ -183,21 +183,21 @@ test.fail_test(start2 < finish1)
# Test that a failed build with -j works properly.
-test.write('copy.py', r"""\
+test.write('mycopy.py', r"""\
import sys
import time
time.sleep(1)
-open(sys.argv[1], 'w').write(open(sys.argv[2], 'r').read())
+open(sys.argv[1], 'wb').write(open(sys.argv[2], 'rb').read())
""")
-test.write('fail.py', r"""\
+test.write('myfail.py', r"""\
import sys
sys.exit(1)
""")
test.write('SConstruct', """
-MyCopy = Builder(action = r'%s copy.py $TARGET $SOURCE')
-Fail = Builder(action = r'%s fail.py $TARGETS $SOURCE')
+MyCopy = Builder(action = r'%s mycopy.py $TARGET $SOURCE')
+Fail = Builder(action = r'%s myfail.py $TARGETS $SOURCE')
env = Environment(BUILDERS = { 'MyCopy' : MyCopy, 'Fail' : Fail })
env.Fail(target = 'f3', source = 'f3.in')
env.MyCopy(target = 'f4', source = 'f4.in')