diff options
author | 2016-06-08 11:23:07 +0300 | |
---|---|---|
committer | 2016-06-08 11:23:07 +0300 | |
commit | cacad4a8dbafca95b875f1eb619c229d4a7d604d (patch) | |
tree | fcfb14f6f4e886b496c4e9e7d8deae8df74a7364 /scripts/automation/regression/stateful_tests | |
parent | ca8b613f14121579d99ce8b7c994e5b87984d410 (diff) |
regression: speedup stateless with --skip-clean flag
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-x | scripts/automation/regression/stateful_tests/trex_general_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_general_test.py b/scripts/automation/regression/stateful_tests/trex_general_test.py index 86fe93e7..82b1d9d1 100755 --- a/scripts/automation/regression/stateful_tests/trex_general_test.py +++ b/scripts/automation/regression/stateful_tests/trex_general_test.py @@ -80,9 +80,9 @@ class CTRexGeneral_Test(unittest.TestCase): device_cfg.set_tftp_config(CTRexScenario.router_cfg['tftp_config_dict']) CTRexScenario.router.load_platform_data_from_file(device_cfg) CTRexScenario.router.launch_connection(device_cfg) - running_image = CTRexScenario.router.get_running_image_details()['image'] - print('Current router image: %s' % running_image) if CTRexScenario.router_cfg['forceImageReload']: + running_image = CTRexScenario.router.get_running_image_details()['image'] + print('Current router image: %s' % running_image) needed_image = device_cfg.get_image_name() if not CTRexScenario.router.is_image_matches(needed_image): print('Setting router image: %s' % needed_image) @@ -96,7 +96,7 @@ class CTRexGeneral_Test(unittest.TestCase): self.fail('Unable to set router image: %s, current image is: %s' % (needed_image, running_image)) else: print('Matches needed image: %s' % needed_image) - CTRexScenario.router_image = running_image + CTRexScenario.router_image = running_image if self.modes: print(termstyle.green('\t!!!\tRunning with modes: %s, not suitable tests will be skipped.\t!!!' % list(self.modes))) |