From 654d992cc3bd2e9e723381a2c44db19410e42247 Mon Sep 17 00:00:00 2001 From: haricharan-candela Date: Fri, 14 Aug 2026 11:52:20 +0530 Subject: [PATCH] WC-1931:lf_interop_ping_plotter.py: Fix ping test if generic tab is not present VERIFIED CLI:python3 lf_interop_ping_plotter.py --mgr 192.168.207.75 --target www.google.com --real --ping_interval 5 --ping_duration 300s --use_default_config --do_webUI --resources 1.40.wlan0,1.56.wlan0,1.30.wlan0 Signed-off-by: haricharan-candela --- py-scripts/lf_interop_ping_plotter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/py-scripts/lf_interop_ping_plotter.py b/py-scripts/lf_interop_ping_plotter.py index ae734aeb1..a3d22d18b 100755 --- a/py-scripts/lf_interop_ping_plotter.py +++ b/py-scripts/lf_interop_ping_plotter.py @@ -431,9 +431,8 @@ def check_tab_exists(self): response = self.json_get("generic") if response is None: logger.error("GET /generic returned no response; Generic tab may not be available on the LANforge manager.") - return False - else: - return True + raise RuntimeError("Generic tab is not available on the LANforge manager.") + return True def create_generic_endp(self): # Virtual stations are tracked in same list as real stations, so need to separate them @@ -3486,9 +3485,7 @@ def main(): ping.buildstation() # check if generic tab is enabled or not - if not ping.check_tab_exists(): - logging.error('Generic Tab is not available.\nAborting the test.') - exit(0) + ping.check_tab_exists() ping.sta_list += ping.real_sta_list