summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-01-08 20:37:40 -0800
committerOle Trøan <otroan@employees.org>2019-02-04 15:37:38 +0000
commit895e2f850659ccc2a644d0d955c2f4313263f106 (patch)
tree8b3315ab6d78323f7372940fcde44ebdb71f8547 /test/vpp_papi_provider.py
parent2baf9422cf42e6f3ca5841bacf1a5424e6db8bea (diff)
Fix inheritance problem in test/hook.py.
Subclasses cannot modify the signature of their constructors. def __init__(self, test): - super(PollHook, self).__init__(test.logger) + super(PollHook, self).__init__(test) Change-Id: I764df8871128f9198a03fac4ec2f45528547467a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index d22cc7c4b49..249288b4f7f 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -1,4 +1,3 @@
-import fnmatch
import os
import time
from collections import deque
@@ -57,7 +56,7 @@ class VppPapiProvider(object):
_zero, _negative = range(2)
def __init__(self, name, shm_prefix, test_class, read_timeout):
- self.hook = Hook("vpp-papi-provider")
+ self.hook = Hook(test_class)
self.name = name
self.shm_prefix = shm_prefix
self.test_class = test_class