Skip to content

Commit f77ee71

Browse files
Narayana-CTa-gavin
authored andcommitted
lf_interop_real_browser.py: Fix linting issues
Verified CLI: python3 lf_interop_real_browser_test.py --mgr 192.168.214.219 --url "https://google.com" --duration 1m --device_list 1.10,1.12 --debug --upstream_port 1.1.eth1 Signed-off-by: Narayana-CT <[email protected]>
1 parent 66a2f46 commit f77ee71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

py-scripts/real_application_tests/real_browser/lf_interop_real_browser_test.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,6 @@ def updating_webui_runningjson(self, obj):
14051405
with open(file_path, 'w') as file:
14061406
json.dump(data, file, indent=4)
14071407

1408-
14091408
def change_port_to_ip(self):
14101409
"""
14111410
Convert a given port name to its corresponding IP address if it's not already an IP.
@@ -1580,14 +1579,12 @@ def generate_pass_fail_list(self, device_type_data, device_names, total_urls):
15801579
test_input_list = []
15811580

15821581
if not self.expected_passfail_value:
1583-
res_list = []
15841582
interop_tab_data = self.json_get('/adb/')["devices"]
15851583
user_to_serial_map = {}
15861584
for dev in interop_tab_data:
15871585
for item in dev.values():
15881586
user_to_serial_map[item['user-name']] = item['name'].split('.')[2]
15891587

1590-
15911588
if self.dowebgui:
15921589
os.chdir(self.original_dir)
15931590

@@ -1614,7 +1611,6 @@ def generate_pass_fail_list(self, device_type_data, device_names, total_urls):
16141611
logging.info(f"Pass Fail Value for Device {name_to_lookup} not found in CSV. Using default value 5")
16151612
test_input_list.append(5)
16161613

1617-
16181614
if self.dowebgui:
16191615
os.chdir(self.result_dir)
16201616

@@ -1628,7 +1624,6 @@ def generate_pass_fail_list(self, device_type_data, device_names, total_urls):
16281624
pass_fail_list.append('FAIL')
16291625

16301626
return pass_fail_list, test_input_list
1631-
16321627

16331628
def create_report(self):
16341629
try:
@@ -1810,7 +1805,7 @@ def create_report(self):
18101805
"Link Speed": tx_rate_data,
18111806

18121807
}
1813-
1808+
18141809
for group in self.selected_groups:
18151810
group_specific_test_results = self.get_test_results_data(final_test_results, group)
18161811
if not group_specific_test_results['Hostname']:
@@ -1820,7 +1815,6 @@ def create_report(self):
18201815
test_results_df = pd.DataFrame(group_specific_test_results)
18211816
report.set_table_dataframe(test_results_df)
18221817
report.build_table()
1823-
18241818

18251819
else:
18261820
if self.expected_passfail_value or self.device_csv_name:

0 commit comments

Comments
 (0)