summaryrefslogtreecommitdiffstats
path: root/test/option-s.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 (GMT)
committerSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 (GMT)
commite5410ac77d8740375b43cb154bedf7219279bf67 (patch)
tree75228cd5740c78a3a2e096e5f44b07e85d2e5d54 /test/option-s.py
parenta140305276c1dc47997c54a76e5b586b1f82b4fb (diff)
downloadSCons-e5410ac77d8740375b43cb154bedf7219279bf67.zip
SCons-e5410ac77d8740375b43cb154bedf7219279bf67.tar.gz
SCons-e5410ac77d8740375b43cb154bedf7219279bf67.tar.bz2
Fix a number of small problems in tests.
Diffstat (limited to 'test/option-s.py')
-rw-r--r--test/option-s.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/option-s.py b/test/option-s.py
index 6791786..666060e 100644
--- a/test/option-s.py
+++ b/test/option-s.py
@@ -48,19 +48,22 @@ 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")
+
test.run(arguments = '-s f1.out f2.out', stdout = "")
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 = '--silent f1.out f2.out', stdout = "")
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 = '--quiet f1.out f2.out', stdout = "")
test.fail_test(not os.path.exists(test.workpath('f1.out')))