mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
Fixed the supplicant log wrong at non eap tests
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -162,12 +162,12 @@ class RunTest:
|
|||||||
pytest.exit("Test Failed: Debug True")
|
pytest.exit("Test Failed: Debug True")
|
||||||
self.staConnect.cleanup()
|
self.staConnect.cleanup()
|
||||||
try:
|
try:
|
||||||
supplicant = "/home/lanforge/wifi/wpa_supplicant_log_" + self.eap_connect.radio.split(".")[2] + ".txt"
|
supplicant = "/home/lanforge/wifi/wpa_supplicant_log_" + self.staConnect.radio.split(".")[2] + ".txt"
|
||||||
obj = SCP_File(ip=self.lanforge_ip, port=self.lanforge_ssh_port, username="root", password="lanforge",
|
obj = SCP_File(ip=self.lanforge_ip, port=self.lanforge_ssh_port, username="root", password="lanforge",
|
||||||
remote_path=supplicant,
|
remote_path=supplicant,
|
||||||
local_path=".")
|
local_path=".")
|
||||||
obj.pull_file()
|
obj.pull_file()
|
||||||
allure.attach.file(source="wpa_supplicant_log_" + self.eap_connect.radio.split(".")[2] + ".txt",
|
allure.attach.file(source="wpa_supplicant_log_" + self.staConnect.radio.split(".")[2] + ".txt",
|
||||||
name="supplicant_log")
|
name="supplicant_log")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user