summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-08-11 06:56:05 +0200
committerNeale Ranns <nranns@cisco.com>2017-08-12 09:19:34 +0000
commit3f6ff19a30e9fbe5befb4cc3521d1812e5612197 (patch)
tree9bec05c1580dcfecf84c93627b4b3416a7bb87a4 /test/framework.py
parentb2215d6b0d8ef7d425d2b9eea524a1c055a9f3b3 (diff)
make test: fix broken DEBUG=gdb* options
Change-Id: I5d80982eeab78a629760f567eda3b1539d96e3a8 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py
index 58b76bbe656..89d95cb36c9 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -115,6 +115,10 @@ class KeepAliveReporter(object):
"""
Write current test tmpdir & desc to keep-alive pipe to signal liveness
"""
+ if self.pipe is None:
+ # if not running forked..
+ return
+
if isclass(test):
desc = test.__name__
else:
@@ -901,8 +905,8 @@ class VppTestRunner(unittest.TextTestRunner):
"""Class maintaining the results of the tests"""
return VppTestResult
- def __init__(self, pipe, stream=sys.stderr, descriptions=True, verbosity=1,
- failfast=False, buffer=False, resultclass=None):
+ def __init__(self, pipe=None, 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,