diff options
author | Klement Sekera <ksekera@cisco.com> | 2017-02-14 02:55:31 +0100 |
---|---|---|
committer | Klement Sekera <ksekera@cisco.com> | 2017-02-14 03:38:37 +0100 |
commit | acb9b8e8c3394d06964ad0f8387b764c01f43152 (patch) | |
tree | c6d0df90d666732a8a3bf171e0c0bdaca696b16b /test/vpp_papi_provider.py | |
parent | 2bce0332d368901ea66c7e582119719757e37e42 (diff) |
make test: improve stability
Disable automatic garbage collection and run it manually before
running each test case to minimize stalls. Improve vpp subprocess
cleanup. Reduce helper thread count to one and properly clean that
thread once it's not needed.
Change-Id: I3ea78ed9628552b5ef3ff29cc7bcf2d3fc42f2c3
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index 39efa9e4c0e..7a508a44d3e 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -87,6 +87,12 @@ class VppPapiProvider(object): def wait_for_event(self, timeout, name=None): """ Wait for and return next event. """ + if name: + self.test_class.logger.debug("Expecting event within %ss", + timeout) + else: + self.test_class.logger.debug("Expecting event '%s' within %ss", + name, timeout) if self._events: self.test_class.logger.debug("Not waiting, event already queued") limit = time.time() + timeout @@ -101,8 +107,6 @@ class VppPapiProvider(object): (name, e)) return e time.sleep(0) # yield - if name is not None: - raise Exception("Event %s did not occur within timeout" % name) raise Exception("Event did not occur within timeout") def __call__(self, name, event): |