Add a TestSCons module for common initialization of SCons tests.
[scons.git] / test / option-p.py
index cb3e05cbdd40504a50cc1e360a2386e47ba9d78b..29d23b21d3452994c8b3c0d5b997f533354c7a56 100644 (file)
@@ -2,17 +2,15 @@
 
 __revision__ = "test/option-p.py __REVISION__ __DATE__ __DEVELOPER__"
 
-import TestCmd
+import TestSCons
 import string
 import sys
 
-test = TestCmd.TestCmd(program = 'scons.py',
-                       workdir = '',
-                       interpreter = 'python')
+test = TestSCons.TestSCons()
 
 test.write('SConstruct', "")
 
-test.run(chdir = '.', arguments = '-p')
+test.run(arguments = '-p')
 
 test.fail_test(test.stderr() !=
                "Warning:  the -p option is not yet implemented\n")