From 8d8150262b00435c365a43c8f859584901736aff Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Mon, 15 Mar 2021 16:58:10 +0100 Subject: tests: add support for worker awareness VppTestCase now has vpp_worker_count property set to number of workers. This can be overriden by child classes. Also overriden by VPP_WORKER_CONFIG variable for legacy reasons. Type: improvement Change-Id: Ic328bacb9003ddf9e92815767653bd362aa7f086 Signed-off-by: Klement Sekera --- src/plugins/nat/test/test_nat44_ed.py | 2 +- src/plugins/nat/test/test_nat44_ei.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/nat') diff --git a/src/plugins/nat/test/test_nat44_ed.py b/src/plugins/nat/test/test_nat44_ed.py index 5eb56a1301e..ba068b476c6 100644 --- a/src/plugins/nat/test/test_nat44_ed.py +++ b/src/plugins/nat/test/test_nat44_ed.py @@ -1957,7 +1957,7 @@ class TestNAT44ED(NAT44EDTestCase): class TestNAT44EDMW(TestNAT44ED): """ NAT44ED MW Test Case """ - worker_config = "workers 1" + vpp_worker_count = 1 def get_stats_counter(self, path, worker=1): return super(TestNAT44EDMW, self).get_stats_counter(path, worker) diff --git a/src/plugins/nat/test/test_nat44_ei.py b/src/plugins/nat/test/test_nat44_ei.py index dcd7f46f073..f5c5abefa9e 100644 --- a/src/plugins/nat/test/test_nat44_ei.py +++ b/src/plugins/nat/test/test_nat44_ei.py @@ -3896,7 +3896,7 @@ class TestNAT44Out2InDPO(MethodHolder): class TestNAT44EIMW(MethodHolder): """ NAT44EI Test Cases (multiple workers) """ - worker_config = "workers %d" % 2 + vpp_worker_count = 2 max_translations = 10240 max_users = 10240 -- cgit 1.2.3-korg