mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
Update firmware script to better debug
Signed-off-by: bhargavi-ct <bhargavimamidipaka@candelatech.com>
This commit is contained in:
@@ -989,17 +989,18 @@ class tip_2x:
|
|||||||
time.sleep(300)
|
time.sleep(300)
|
||||||
|
|
||||||
# check the current AP Revision again
|
# check the current AP Revision again
|
||||||
|
ap_version = self.dut_library_object.get_ap_version(idx=ap)
|
||||||
try:
|
try:
|
||||||
logging.info(f"trying to get_ap_version for the first time")
|
current_version = str(ap_version).split("/")[1].replace(" ", "").splitlines()[0]
|
||||||
|
except (IndexError, AttributeError) as e:
|
||||||
|
logging.warning(f"First attempt failed: {e}. Retrying after 10s...")
|
||||||
|
time.sleep(10)
|
||||||
ap_version = self.dut_library_object.get_ap_version(idx=ap)
|
ap_version = self.dut_library_object.get_ap_version(idx=ap)
|
||||||
except IndexError as e:
|
|
||||||
logging.warning(f"First attempt failed with error: {e}. Retrying after short delay...")
|
|
||||||
time.sleep(60) # allow time for AP to finish booting
|
|
||||||
try:
|
try:
|
||||||
ap_version = self.dut_library_object.get_ap_version(idx=ap)
|
current_version = str(ap_version).split("/")[1].replace(" ", "").splitlines()[0]
|
||||||
except Exception as e:
|
except (IndexError, AttributeError) as e:
|
||||||
logging.error(f"Second attempt to get AP version failed: {e}")
|
logging.error(f"Second attempt failed: {e}")
|
||||||
ap_version = "UNKNOWN"
|
current_version = "UNKNOWN"
|
||||||
|
|
||||||
logging.info(f"ap_version:6{ap_version}")
|
logging.info(f"ap_version:6{ap_version}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user