diff options
-rwxr-xr-x | scripts/automation/regression/trex_unit_test.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/automation/regression/trex_unit_test.py b/scripts/automation/regression/trex_unit_test.py index 2ba25e4c..73c14ea9 100755 --- a/scripts/automation/regression/trex_unit_test.py +++ b/scripts/automation/regression/trex_unit_test.py @@ -222,10 +222,14 @@ class CTRexTestConfiguringPlugin(Plugin): if self.functional or self.collect_only: return CTRexScenario.is_init = False + if self.stateful: + CTRexScenario.trex = None + if self.stateless: + CTRexScenario.trex_stl = None if not self.no_ssh: if self.stateful: - trex_remote_command(CTRexScenario.configuration.trex, STATEFUL_STOP_COMMAND) - kill_trex_process(CTRexScenario.configuration.trex) + trex_remote_command(self.configuration.trex, STATEFUL_STOP_COMMAND) + kill_trex_process(self.configuration.trex) def save_setup_info(): |