From: Paul Vinciguerra Date: Mon, 14 Jan 2019 05:32:37 +0000 (-0800) Subject: VTL: Add **kwargs to VppTestRunner constructor. X-Git-Tag: v19.04-rc1~639 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9889402b79240d679568ba9b3eaa39e631a0b2e5;p=vpp.git VTL: Add **kwargs to VppTestRunner constructor. Subclasses should accept **kwargs to ensure compatibility as the interface changes. https://github.com/python/cpython/blob/master/Lib/unittest/runner.py#L133 Change-Id: Ia64ffd88899d207a5422f066700d2f7f9c77622e Signed-off-by: Paul Vinciguerra --- diff --git a/test/framework.py b/test/framework.py index ea637eba9eb..9d85be73452 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1279,12 +1279,12 @@ class VppTestRunner(unittest.TextTestRunner): def __init__(self, keep_alive_pipe=None, descriptions=True, verbosity=1, result_pipe=None, failfast=False, buffer=False, - resultclass=None, print_summary=True): + resultclass=None, print_summary=True, **kwargs): # 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) + resultclass, **kwargs) KeepAliveReporter.pipe = keep_alive_pipe self.orig_stream = self.stream