summaryrefslogtreecommitdiff
path: root/test/runtest/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtest/python.py')
-rw-r--r--test/runtest/python.py28
1 files changed, 10 insertions, 18 deletions
diff --git a/test/runtest/python.py b/test/runtest/python.py
index 1830aa7b..e798a53d 100644
--- a/test/runtest/python.py
+++ b/test/runtest/python.py
@@ -48,26 +48,18 @@ test.subdir('test')
test.write_passing_test(['test', 'pass.py'])
-# NOTE: The "test/pass.py : PASS" line has spaces at the end.
-
-expect = r"""qmtest run --output results.qmr --format none --result-stream="scons_tdb.AegisChangeStream" --context python="%(mypython)s" test
---- TEST RESULTS -------------------------------------------------------------
-
- %(test_pass_py)s : PASS
-
---- TESTS THAT DID NOT PASS --------------------------------------------------
-
- None.
-
-
---- STATISTICS ---------------------------------------------------------------
-
- 1 tests total
-
- 1 (100%%) tests PASS
+expect_stdout = """\
+%(mypython)s -tt test/pass.py
+PASSING TEST STDOUT
""" % locals()
-test.run(arguments = ['-P', mypython, 'test'], stdout = expect)
+expect_stderr = """\
+PASSING TEST STDERR
+"""
+
+test.run(arguments=['-P', mypython, 'test'],
+ stdout=expect_stdout,
+ stderr=expect_stderr)
test.pass_test()