summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-14 16:38:58 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-14 16:38:58 (GMT)
commit13873a35cc5bbfba162414d6a63c790632192729 (patch)
treee49095300d99625f871243d80fd217fdd06432ef
parent2da21594f9468283525c27992eb8565d3473841b (diff)
downloadSCons-13873a35cc5bbfba162414d6a63c790632192729.zip
SCons-13873a35cc5bbfba162414d6a63c790632192729.tar.gz
SCons-13873a35cc5bbfba162414d6a63c790632192729.tar.bz2
try mode='w' to see if this makes source file for msvc the proper format
-rw-r--r--test/srcchange.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/srcchange.py b/test/srcchange.py
index bbad4e7..8021827 100644
--- a/test/srcchange.py
+++ b/test/srcchange.py
@@ -82,31 +82,31 @@ main(int argc, char *argv[])
printf("Revision $REV$\\n");
exit (0);
}
-""")
+""", mode='w')
test.write('revnum.in', '3.2\n')
-prog = 'main' + TestSCons._exe
+program_name = 'main' + TestSCons._exe
-light_build=test.wrap_stdout("""\
+light_build = test.wrap_stdout("""\
%(_python_)s getrevision > revision.in
""" % locals())
test.run(arguments='.')
-test.must_exist(prog)
-test.run(program=test.workpath(prog), stdout='Revision $REV: 3.2$\n')
+test.must_exist(program_name)
+test.run(program_name=test.workpath(program_name), stdout='Revision $REV: 3.2$\n')
test.run(arguments='.', stdout=light_build)
-test.must_exist(prog)
+test.must_exist(program_name)
test.run(arguments='.', stdout=light_build)
-test.must_exist(prog)
+test.must_exist(program_name)
test.write('revnum.in', '3.3\n')
test.run(arguments='.')
-test.must_exist(prog)
-test.run(program=test.workpath(prog), stdout='Revision $REV: 3.3$\n')
+test.must_exist(program_name)
+test.run(program_name=test.workpath(program_name), stdout='Revision $REV: 3.3$\n')
test.pass_test()