From 184870ac5a266c37987e4a4d97ab4d4efefacb1f Mon Sep 17 00:00:00 2001 From: "juraj.linkes" Date: Mon, 16 Jul 2018 14:22:01 +0200 Subject: 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 --- src/vpp-api/python/vpp_papi/vpp_papi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vpp-api/python/vpp_papi') 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() -- cgit 1.2.3-korg