diff options
Diffstat (limited to 'test/option--max-drift.py')
-rw-r--r-- | test/option--max-drift.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/option--max-drift.py b/test/option--max-drift.py index facaeca..fb289eb 100644 --- a/test/option--max-drift.py +++ b/test/option--max-drift.py @@ -58,31 +58,35 @@ test.write('f2.in', "f2.in\n") test.run(arguments = 'f1.out') -test.run(arguments = 'f1.out f2.out', stdout = +test.run(arguments = 'f1.out f2.out', + stdout = test.wrap_stdout( """scons: "f1.out" is up to date. %s build.py f2.out f2.in -""" % python) +""" % python)) atime = os.path.getatime(test.workpath('f1.in')) mtime = os.path.getmtime(test.workpath('f1.in')) -test.run(arguments = '--max-drift=0 f1.out f2.out', stdout = +test.run(arguments = '--max-drift=0 f1.out f2.out', + stdout = test.wrap_stdout( """scons: "f1.out" is up to date. scons: "f2.out" is up to date. -""") +""")) test.write('f1.in', "f1.in delta\n") os.utime(test.workpath('f1.in'), (atime,mtime)) -test.run(arguments = '--max-drift=0 f1.out f2.out', stdout = +test.run(arguments = '--max-drift=0 f1.out f2.out', + stdout = test.wrap_stdout( """scons: "f1.out" is up to date. scons: "f2.out" is up to date. -""") +""")) -test.run(arguments = '--max-drift=-1 f1.out f2.out', stdout = +test.run(arguments = '--max-drift=-1 f1.out f2.out', + stdout = test.wrap_stdout( """%s build.py f1.out f1.in scons: "f2.out" is up to date. -"""%python) +""" % python)) test.pass_test() |