diff options
author | Matthew Treinish <mtreinish@kortar.org> | 2015-02-11 11:16:42 -0500 |
---|---|---|
committer | Matthew Treinish <mtreinish@kortar.org> | 2015-02-11 17:19:44 +0000 |
commit | 21e3f6a29a368840b66fe6fccd60abd431bbc727 (patch) | |
tree | 87c9b8f3889295614c332583013a45c983b09ec4 | |
parent | c70c26d05c95778420bc0032d5653e06e941d79c (diff) | |
download | tempest-lib-21e3f6a29a368840b66fe6fccd60abd431bbc727.tar.gz |
Enable stdout passthrough for subunit-trace0.2.1
One of the biggest issues with subunit-trace is when non-subunit data
is passed into it gets dropped by subunit trace. This patch is an
attempt (based on a similar patch to subunit-2to1) to allow non subunit
data existing before the subunit stream to be printed on stdout. After the
stream is detected however any other stdin unrelated content will still be
lost.
Closes-Bug: #1420067
Change-Id: I94c428120892b987c372473ac2128d73e9ba8f2d
-rwxr-xr-x | tempest_lib/cmd/subunit_trace.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tempest_lib/cmd/subunit_trace.py b/tempest_lib/cmd/subunit_trace.py index 5ffaa7c..eb78610 100755 --- a/tempest_lib/cmd/subunit_trace.py +++ b/tempest_lib/cmd/subunit_trace.py @@ -251,6 +251,9 @@ def main(): failonly=args.failonly)) summary = testtools.StreamSummary() result = testtools.CopyStreamResult([outcomes, summary]) + result = testtools.StreamResultRouter(result) + cat = subunit.test_results.CatFiles(sys.stdout) + result.add_rule(cat, 'test_id', test_id=None) start_time = datetime.datetime.utcnow() result.startTestRun() try: |