summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-01-17 13:42:48 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-17 22:02:16 +0000
commit7a161da36eeedcf3b2e932e66fa18b34d8cdda2b (patch)
treedb2550eee22c0ff50ffff15dedbda7a93ba2370a /test
parent46a87adf10d41af4b1b14f06bdab33228cbaae95 (diff)
make test: fix text output when non-interactive
Output everything to stdout instead of mixing stdout and stderr. Change-Id: I3146760e068fda7f1ffaaf36683d5153dcda4561 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index a6b07f14991..02935604f26 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -706,6 +706,14 @@ class VppTestRunner(unittest.TextTestRunner):
"""Class maintaining the results of the tests"""
return VppTestResult
+ def __init__(self, stream=sys.stderr, descriptions=True, verbosity=1,
+ failfast=False, buffer=False, resultclass=None):
+ # ignore stream setting here, use hard-coded stdout to be in sync
+ # with prints from VppTestCase methods ...
+ super(VppTestRunner, self).__init__(sys.stdout, descriptions,
+ verbosity, failfast, buffer,
+ resultclass)
+
def run(self, test):
"""
Run the tests