summaryrefslogtreecommitdiffstats
path: root/test/option-n.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/option-n.py')
-rw-r--r--test/option-n.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/option-n.py b/test/option-n.py
index 0a11101..0a5a225 100644
--- a/test/option-n.py
+++ b/test/option-n.py
@@ -48,6 +48,9 @@ env.MyBuild(target = 'f1.out', source = 'f1.in')
env.MyBuild(target = 'f2.out', source = 'f2.in')
""" % python)
+test.write('f1.in', "f1.in\n")
+test.write('f2.in', "f2.in\n")
+
args = 'f1.out f2.out'
expect = "%s build.py f1.out\n%s build.py f2.out\n" % (python, python)
@@ -55,8 +58,8 @@ test.run(arguments = args, stdout = expect)
test.fail_test(not os.path.exists(test.workpath('f1.out')))
test.fail_test(not os.path.exists(test.workpath('f2.out')))
-os.unlink(test.workpath('f1.out'))
-os.unlink(test.workpath('f2.out'))
+test.unlink('f1.out')
+test.unlink('f2.out')
test.run(arguments = '-n ' + args, stdout = expect)
test.fail_test(os.path.exists(test.workpath('f1.out')))