summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-01-07 12:30:48 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-01-07 13:43:38 +0100
commit1903b819fd34f9a41301dc1a74037c8e294c5a46 (patch)
treea1634fe380d8f3e4c8bd15ca29b51c3416f6fb56 /tests
parenttools: Rename `show thread ...` to `show event ...` (diff)
downloadfrr-1903b819fd34f9a41301dc1a74037c8e294c5a46.tar.xz
frr-1903b819fd34f9a41301dc1a74037c8e294c5a46.zip
tests: Rename `show thread ...` to `show event ...`
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py4
-rw-r--r--tests/topotests/isis_topo1/test_isis_topo1.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py b/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py
index 46993c7d9..e05bf21ea 100644
--- a/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py
+++ b/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py
@@ -226,7 +226,7 @@ else:
ave_b = float(delta_b) / float(num)
luCommand(
rtr,
- 'vtysh -c "show thread cpu"',
+ 'vtysh -c "show event cpu"',
".",
"pass",
"BGPd heap: {0} {1} --> {2} {3} ({4} {1}/vpn route)".format(
@@ -239,7 +239,7 @@ else:
)
luCommand(
rtr,
- 'vtysh -c "show thread cpu"',
+ 'vtysh -c "show event cpu"',
".",
"pass",
"Zebra heap: {0} {1} --> {2} {3} ({4} {1}/vpn route)".format(
diff --git a/tests/topotests/isis_topo1/test_isis_topo1.py b/tests/topotests/isis_topo1/test_isis_topo1.py
index 48e9d5336..532e70859 100644
--- a/tests/topotests/isis_topo1/test_isis_topo1.py
+++ b/tests/topotests/isis_topo1/test_isis_topo1.py
@@ -708,9 +708,9 @@ def _check_overload_timer(router, timer_expected):
tgen = get_topogen()
router = tgen.gears[router]
- thread_output = router.vtysh_cmd("show thread timers")
+ output = router.vtysh_cmd("show event timers")
- timer_running = "set_overload_on_start_timer" in thread_output
+ timer_running = "set_overload_on_start_timer" in output
if timer_running == timer_expected:
return True
return "Expected timer running status: {}".format(timer_expected)