summaryrefslogtreecommitdiffstats
path: root/test/runtest/simple/pass.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/runtest/simple/pass.py')
-rw-r--r--test/runtest/simple/pass.py26
1 files changed, 9 insertions, 17 deletions
diff --git a/test/runtest/simple/pass.py b/test/runtest/simple/pass.py
index ee7bc74..873be09 100644
--- a/test/runtest/simple/pass.py
+++ b/test/runtest/simple/pass.py
@@ -30,32 +30,24 @@ Test how we handle a passing test specified on the command line.
import TestRuntest
+python = TestRuntest.python
+
test = TestRuntest.TestRuntest()
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" test/pass.py
---- TEST RESULTS -------------------------------------------------------------
-
- test/pass.py : PASS
-
---- TESTS THAT DID NOT PASS --------------------------------------------------
-
- None.
-
-
---- STATISTICS ---------------------------------------------------------------
-
- 1 tests total
+expect_stdout = """\
+%(python)s -tt test/pass.py
+PASSING TEST STDOUT
+""" % locals()
- 1 (100%) tests PASS
+expect_stderr = """\
+PASSING TEST STDERR
"""
-test.run(arguments = 'test/pass.py', stdout = expect)
+test.run(arguments='test/pass.py', stdout=expect_stdout, stderr=expect_stderr)
test.pass_test()