diff options
author | imarom <imarom@cisco.com> | 2016-09-25 14:58:51 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-09-25 15:08:09 +0300 |
commit | d94e6a00edc22a1dd4946b3603aebb29319ce5ce (patch) | |
tree | febed00c2f93adcc0519fcf9b6ee3c81d66d2178 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py | |
parent | e768dc68155ba835882733753844a570d8384646 (diff) |
split multicore - all tests pass
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py index 63a1232b..54ec2da9 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py @@ -558,25 +558,13 @@ def test_multi_core (r, options): print("") - print(format_text("comparing 2 cores to 1 core:\n", 'underline')) - rc = compare_caps_strict('1.cap', '2.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 4 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '4.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 6 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '6.cap') - if rc: - print("[Passed]\n") - - print(format_text("comparing 8 cores to 1 core:\n", 'underline')) - rc = compare_caps('1.cap', '8.cap') - if rc: - print("[Passed]\n") + for core_count in range(1, 9): + print(format_text("comparing {0} cores to 1 core:\n".format(core_count), 'underline')) + rc = compare_caps_strict('1.cap', '{0}.cap'.format(core_count)) + if rc: + print("[Passed]\n") + + return def main (args = None): |