summaryrefslogtreecommitdiffstats
path: root/test/Program.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Program.py')
-rw-r--r--test/Program.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/Program.py b/test/Program.py
index 78edf92..8fb0fa4 100644
--- a/test/Program.py
+++ b/test/Program.py
@@ -2,11 +2,9 @@
__revision__ = "test/Program.py __REVISION__ __DATE__ __DEVELOPER__"
-import TestCmd
+import TestSCons
-test = TestCmd.TestCmd(program = 'scons.py',
- workdir = '',
- interpreter = 'python')
+test = TestSCons.TestSCons()
test.write('SConstruct', """
env = Environment()
@@ -22,7 +20,7 @@ main(int argc, char *argv[])
}
""")
-test.run(chdir = '.', arguments = 'foo')
+test.run(arguments = 'foo')
test.run(program = test.workpath('foo'))