diff options
Diffstat (limited to 'scripts/automation/regression/stateful_tests/trex_rx_test.py')
-rwxr-xr-x | scripts/automation/regression/stateful_tests/trex_rx_test.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_rx_test.py b/scripts/automation/regression/stateful_tests/trex_rx_test.py index 161856b1..d2050703 100755 --- a/scripts/automation/regression/stateful_tests/trex_rx_test.py +++ b/scripts/automation/regression/stateful_tests/trex_rx_test.py @@ -1,5 +1,5 @@ #!/router/bin/python -from .trex_general_test import CTRexGeneral_Test +from .trex_general_test import CTRexGeneral_Test, CTRexScenario from CPlatform import CStaticRouteConfig, CNatConfig from .tests_exceptions import * #import sys @@ -87,7 +87,7 @@ class CTRexRx_Test(CTRexGeneral_Test): self.fail('Errors in rx_check: %s' % e) def test_rx_check_sfr(self): - if not self.is_loopback: + if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']: self.router.configure_basic_interfaces() self.router.config_pbr(mode = 'config') @@ -121,7 +121,7 @@ class CTRexRx_Test(CTRexGeneral_Test): def test_rx_check_http(self): - if not self.is_loopback: + if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']: # TODO: skip as test_rx_check_http_negative will cover it #self.skip('This test is covered by test_rx_check_http_negative') self.router.configure_basic_interfaces() @@ -155,7 +155,7 @@ class CTRexRx_Test(CTRexGeneral_Test): def test_rx_check_sfr_ipv6(self): - if not self.is_loopback: + if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']: self.router.configure_basic_interfaces() self.router.config_pbr(mode = 'config') self.router.config_ipv6_pbr(mode = "config") @@ -190,7 +190,7 @@ class CTRexRx_Test(CTRexGeneral_Test): def test_rx_check_http_ipv6(self): - if not self.is_loopback: + if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']: self.router.configure_basic_interfaces() self.router.config_pbr(mode = "config") self.router.config_ipv6_pbr(mode = "config") @@ -226,8 +226,9 @@ class CTRexRx_Test(CTRexGeneral_Test): if self.is_loopback: self.skip('This test uses NAT, not relevant for loopback') - self.router.configure_basic_interfaces() - self.router.config_pbr(mode = "config") + if not CTRexScenario.router_cfg['no_dut_config']: + self.router.configure_basic_interfaces() + self.router.config_pbr(mode = "config") core = self.get_benchmark_param('cores') mult = self.get_benchmark_param('multiplier') |