diff options
author | juraj.linkes <juraj.linkes@pantheon.tech> | 2018-07-16 14:22:01 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-08-23 14:19:35 +0000 |
commit | 184870ac5a266c37987e4a4d97ab4d4efefacb1f (patch) | |
tree | 5f9bb444c2f1670b6620b2c62177cb0642ac37fc /src | |
parent | 99ddcc3f8b5549252fcf834e2a25aa39ba0b880e (diff) |
CSIT-1139: Implement parallel test execution
The implementation of parallel test execution in VPP Test Framework.
- VPPTestCase test methods are grouped together
- tests are running in separate processes
- VPP instances spawned by tests are assigned to different cores
- output from these processes is redirected through pipes and printed
out testcase by testcase
- TEST_JOBS env var is used to specify the number of parallel processes
- improved test summary
- a bit of code cleanup
Change-Id: I9ca93904d9fe2c3daf980500c64a8611838ae28c
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'src')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_papi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py index 4afb6166f1b..d5ad837331e 100644 --- a/src/vpp-api/python/vpp_papi/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi/vpp_papi.py @@ -63,7 +63,7 @@ vpp_api = ffi.dlopen('libvppapiclient.so') def vpp_atexit(vpp_weakref): """Clean up VPP connection on shutdown.""" vpp_instance = vpp_weakref() - if vpp_instance.connected: + if vpp_instance and vpp_instance.connected: vpp_instance.logger.debug('Cleaning up VPP on exit') vpp_instance.disconnect() |