From: Klement Sekera Date: Tue, 17 Jan 2017 12:42:48 +0000 (+0100) Subject: make test: fix text output when non-interactive X-Git-Tag: v17.04-rc1~351 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F4736%2F2;p=vpp.git 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 --- 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