tests: fix DEBUG=attach multiple worker config
Type: fix Change-Id: Ie7920c0c699904de0f68ddb749725887b569f295 Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:
Klement Sekera
committed by
Ole Tr�an
parent
6d1b079bf3
commit
1dc146efae
@ -6,6 +6,7 @@ import sys
|
|||||||
|
|
||||||
from sanity_run_vpp import SanityTestCase
|
from sanity_run_vpp import SanityTestCase
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
|
from cpu_config import available_cpus
|
||||||
|
|
||||||
gdb_path = '/usr/bin/gdb'
|
gdb_path = '/usr/bin/gdb'
|
||||||
|
|
||||||
@ -40,6 +41,8 @@ def start_vpp_in_gdb():
|
|||||||
rmtree(SanityTestCase.tempdir)
|
rmtree(SanityTestCase.tempdir)
|
||||||
print("Creating temp dir '%s'." % SanityTestCase.tempdir)
|
print("Creating temp dir '%s'." % SanityTestCase.tempdir)
|
||||||
os.mkdir(SanityTestCase.tempdir)
|
os.mkdir(SanityTestCase.tempdir)
|
||||||
|
SanityTestCase.assign_cpus(
|
||||||
|
available_cpus[:SanityTestCase.get_cpus_required()])
|
||||||
SanityTestCase.setUpConstants()
|
SanityTestCase.setUpConstants()
|
||||||
vpp_cmdline = SanityTestCase.vpp_cmdline
|
vpp_cmdline = SanityTestCase.vpp_cmdline
|
||||||
if os.getenv("VPP_IN_GDB_CMDLINE", "y").lower() in ["1", "y", "yes"]:
|
if os.getenv("VPP_IN_GDB_CMDLINE", "y").lower() in ["1", "y", "yes"]:
|
||||||
|
Reference in New Issue
Block a user