aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2018-11-21 13:20:43 +0100
committerDamjan Marion <dmarion@me.com>2018-11-23 13:36:26 +0000
commitccfead6e12f5d5a124e1e279a5b74361e00e2de8 (patch)
tree76954dd5cc7532af3ba0cdb798495a9aadf819fd
parent3d9b92a0c56c3cbe51e75bc3cb40d3d2db2d3720 (diff)
Fix test framework keepalive
The pipe used for sending keepalive messages was being added to an instance of KeepAliveReporter and then used by the class itself. This worked in the past but doesn't anymore. Fix the issue by adding the pipe to the class instead of an instance. Change-Id: If7cdca2de23ca78448e80569b155e9e29e81ff94 Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
-rw-r--r--test/framework.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py
index 4f830ba613e..3c4aacb6354 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1255,8 +1255,7 @@ class VppTestRunner(unittest.TextTestRunner):
super(VppTestRunner, self).__init__(sys.stdout, descriptions,
verbosity, failfast, buffer,
resultclass)
- reporter = KeepAliveReporter()
- reporter.pipe = keep_alive_pipe
+ KeepAliveReporter.pipe = keep_alive_pipe
VppTestResult.test_framework_result_pipe = result_pipe