From 2b126725d5d708d16289e652cc9c9894898354fa Mon Sep 17 00:00:00 2001 From: Tim Buckley Date: Thu, 20 Aug 2015 09:28:28 -0600 Subject: [PATCH] Rewind stdin streams during get_stream to ensure they can be re-read properly. --- stackviz/parser/tempest_subunit.py | 1 + stackviz/templates/menu.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/stackviz/parser/tempest_subunit.py b/stackviz/parser/tempest_subunit.py index c3958fe..3cffe8a 100644 --- a/stackviz/parser/tempest_subunit.py +++ b/stackviz/parser/tempest_subunit.py @@ -165,6 +165,7 @@ class StandardInputProvider(SubunitProvider): if index != 0: raise IndexError() + self.buffer.seek(0) return self.buffer diff --git a/stackviz/templates/menu.html b/stackviz/templates/menu.html index 258da7c..9b6fd41 100644 --- a/stackviz/templates/menu.html +++ b/stackviz/templates/menu.html @@ -34,9 +34,11 @@ + {% if not offline %}
  • Aggregate Results
  • + {% endif %}