diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-07-01 14:55:46 +0200 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-09-08 11:22:45 +0000 |
commit | 1dc146efae42171c5aa23dab2918e130046ab62c (patch) | |
tree | e3ac7ac2e4e17c9412e2ea8b6b5fce45c9f7b5e7 /test | |
parent | 6d1b079bf38882458dc7634d3e302e73d33897a1 (diff) |
tests: fix DEBUG=attach multiple worker config
Type: fix
Change-Id: Ie7920c0c699904de0f68ddb749725887b569f295
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/debug.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/debug.py b/test/debug.py index e79f082615d..a911a78b47f 100644 --- a/test/debug.py +++ b/test/debug.py @@ -6,6 +6,7 @@ import sys from sanity_run_vpp import SanityTestCase from shutil import rmtree +from cpu_config import available_cpus gdb_path = '/usr/bin/gdb' @@ -40,6 +41,8 @@ def start_vpp_in_gdb(): rmtree(SanityTestCase.tempdir) print("Creating temp dir '%s'." % SanityTestCase.tempdir) os.mkdir(SanityTestCase.tempdir) + SanityTestCase.assign_cpus( + available_cpus[:SanityTestCase.get_cpus_required()]) SanityTestCase.setUpConstants() vpp_cmdline = SanityTestCase.vpp_cmdline if os.getenv("VPP_IN_GDB_CMDLINE", "y").lower() in ["1", "y", "yes"]: |