summaryrefslogtreecommitdiff
path: root/test/option-n.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 +0000
committerSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 +0000
commite5410ac77d8740375b43cb154bedf7219279bf67 (patch)
tree75228cd5740c78a3a2e096e5f44b07e85d2e5d54 /test/option-n.py
parenta140305276c1dc47997c54a76e5b586b1f82b4fb (diff)
downloadscons-e5410ac77d8740375b43cb154bedf7219279bf67.tar.gz
Fix a number of small problems in tests.
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 0a111010..0a5a225c 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')))