mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
WIFI-5125 : fixed ubus call ucentral status command failed to parse output due to other serial console message
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -337,8 +337,11 @@ class APNOS:
|
||||
active = output.decode('utf-8').splitlines()[4].split(":")[1].replace(" ", "").replace(",", "")
|
||||
client.close()
|
||||
except Exception as e:
|
||||
pytest.exit("ubus call ucentral status: error" + output)
|
||||
print(e)
|
||||
if output.__contains__('"connected":'):
|
||||
pass
|
||||
else:
|
||||
pytest.exit("ubus call ucentral status: error" + str(output))
|
||||
print(e)
|
||||
connected, latest, active = "Error", "Error", "Error"
|
||||
return connected, latest, active
|
||||
|
||||
|
||||
Reference in New Issue
Block a user