Skip to content

Commit 9bac7a5

Browse files
committed
Fix linter issues
1 parent 1e1cab7 commit 9bac7a5

File tree

5 files changed

+26
-24
lines changed

5 files changed

+26
-24
lines changed

tests/validation/mtl_engine/ffmpeg_app.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,13 +1222,15 @@ def execute_dual_test_rgb24(
12221222
):
12231223
# Initialize logging for this test
12241224
init_test_logging()
1225-
1225+
12261226
# Use separate NIC port lists for TX and RX hosts
12271227
tx_nic_port_list = tx_host.vfs
12281228
rx_nic_port_list = rx_host.vfs
12291229
video_size, fps = decode_video_format_16_9(video_format)
1230-
1231-
logger.info(f"Creating RX config for RGB24 dual test with video_format: {video_format}")
1230+
1231+
logger.info(
1232+
f"Creating RX config for RGB24 dual test with video_format: {video_format}"
1233+
)
12321234
log_to_file(
12331235
f"Creating RX config for RGB24 dual test with video_format: {video_format}",
12341236
rx_host,
@@ -1246,7 +1248,7 @@ def execute_dual_test_rgb24(
12461248
log_fail(f"Failed to create RX config file: {e}")
12471249
log_to_file(f"Failed to create RX config file: {e}", rx_host, build)
12481250
return False
1249-
1251+
12501252
rx_cmd = f"{RXTXAPP_PATH} --config_file {rx_config_file} --test_time {test_time}"
12511253
tx_cmd = (
12521254
f"ffmpeg -stream_loop -1 -video_size {video_size} -f rawvideo -pix_fmt rgb24 "
@@ -1282,7 +1284,7 @@ def execute_dual_test_rgb24(
12821284
enable_sudo=True,
12831285
)
12841286
time.sleep(5)
1285-
1287+
12861288
# Start TX pipeline on TX host
12871289
logger.info("Starting TX pipeline on TX host...")
12881290
tx_proc = run(
@@ -1294,7 +1296,7 @@ def execute_dual_test_rgb24(
12941296
background=True,
12951297
enable_sudo=True,
12961298
)
1297-
1299+
12981300
# Start tcpdump after pipelines are running
12991301
if tcpdump:
13001302
logger.info("Starting tcpdump capture...")
@@ -1320,7 +1322,7 @@ def execute_dual_test_rgb24(
13201322
logger.info("TX process killed")
13211323
except Exception:
13221324
logger.info("Could not terminate TX process")
1323-
1325+
13241326
rx_output = ""
13251327
try:
13261328
rx_output = rx_proc.stdout_text
@@ -1335,7 +1337,7 @@ def execute_dual_test_rgb24(
13351337
logger.info("TX output captured successfully")
13361338
except Exception as e:
13371339
log_to_file(f"Error retrieving TX output: {e}", tx_host, build)
1338-
1340+
13391341
except Exception as e:
13401342
log_fail(f"Error during test execution: {e}")
13411343
# Terminate processes immediately on error
@@ -1374,7 +1376,7 @@ def execute_dual_test_rgb24(
13741376
pass
13751377
if tcpdump:
13761378
tcpdump.stop()
1377-
1379+
13781380
if not check_output_rgb24(rx_output, 1):
13791381
log_fail("rx video sessions failed")
13801382
return False
@@ -1395,13 +1397,13 @@ def execute_dual_test_rgb24_multiple(
13951397
):
13961398
# Initialize logging for this test
13971399
init_test_logging()
1398-
1399-
# Use separate NIC port lists for TX and RX hosts
1400+
1401+
# Use separate NIC port lists for TX and RX hosts
14001402
tx_nic_port_list = tx_host.vfs
14011403
rx_nic_port_list = rx_host.vfs
14021404
video_size_1, fps_1 = decode_video_format_16_9(video_format_list[0])
14031405
video_size_2, fps_2 = decode_video_format_16_9(video_format_list[1])
1404-
1406+
14051407
logger.info(
14061408
f"Creating RX config for RGB24 multiple dual test with video_formats: {video_format_list}"
14071409
)
@@ -1422,7 +1424,7 @@ def execute_dual_test_rgb24_multiple(
14221424
log_fail(f"Failed to create RX config file: {e}")
14231425
log_to_file(f"Failed to create RX config file: {e}", rx_host, build)
14241426
return False
1425-
1427+
14261428
rx_cmd = f"{RXTXAPP_PATH} --config_file {rx_config_file} --test_time {test_time}"
14271429
tx_1_cmd = (
14281430
f"ffmpeg -stream_loop -1 -video_size {video_size_1} -f rawvideo -pix_fmt rgb24 "
@@ -1469,7 +1471,7 @@ def execute_dual_test_rgb24_multiple(
14691471
enable_sudo=True,
14701472
)
14711473
time.sleep(5)
1472-
1474+
14731475
# Start TX pipelines on TX host
14741476
logger.info("Starting TX pipelines on TX host...")
14751477
tx_1_proc = run(
@@ -1490,7 +1492,7 @@ def execute_dual_test_rgb24_multiple(
14901492
background=True,
14911493
enable_sudo=True,
14921494
)
1493-
1495+
14941496
# Start tcpdump after pipelines are running
14951497
if tcpdump:
14961498
logger.info("Starting tcpdump capture...")
@@ -1515,7 +1517,7 @@ def execute_dual_test_rgb24_multiple(
15151517
logger.info("TX process killed")
15161518
except Exception:
15171519
logger.info("Could not terminate TX process")
1518-
1520+
15191521
rx_output = ""
15201522
try:
15211523
rx_output = rx_proc.stdout_text
@@ -1524,13 +1526,13 @@ def execute_dual_test_rgb24_multiple(
15241526
except Exception as e:
15251527
logger.info(f"Error retrieving RX output: {e}")
15261528
log_to_file(f"Error retrieving RX output: {e}", rx_host, build)
1527-
1529+
15281530
try:
15291531
log_to_file(f"TX1 Output:\n{tx_1_proc.stdout_text}", tx_host, build)
15301532
logger.info("TX1 output captured successfully")
15311533
except Exception as e:
15321534
logger.info(f"Error retrieving TX1 output: {e}")
1533-
1535+
15341536
try:
15351537
log_to_file(f"TX2 Output:\n{tx_2_proc.stdout_text}", tx_host, build)
15361538
logger.info("TX2 output captured successfully")
@@ -1561,9 +1563,9 @@ def execute_dual_test_rgb24_multiple(
15611563
pass
15621564
if tcpdump:
15631565
tcpdump.stop()
1564-
1566+
15651567
if not check_output_rgb24(rx_output, 2):
15661568
log_fail("rx video session failed")
15671569
return False
15681570
time.sleep(5)
1569-
return True
1571+
return True

tests/validation/tests/dual/ffmpeg/test_rx_ffmpeg_tx_ffmpeg_dual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_rx_ffmpeg_tx_ffmpeg_dual(
3737

3838
tx_host = host_list[0]
3939
rx_host = host_list[1]
40-
40+
4141
capture_cfg = dict(test_config.get("capture_cfg", {}))
4242
capture_cfg["test_name"] = (
4343
f"test_rx_ffmpeg_tx_ffmpeg_dual_{video_format}_{output_format}"

tests/validation/tests/dual/ffmpeg/test_rx_ffmpeg_tx_ffmpeg_rgb24_dual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_rx_ffmpeg_tx_ffmpeg_rgb24_dual(
3636

3737
tx_host = host_list[0]
3838
rx_host = host_list[1]
39-
39+
4040
capture_cfg = dict(test_config.get("capture_cfg", {}))
4141
capture_cfg["test_name"] = f"test_rx_ffmpeg_tx_ffmpeg_rgb24_dual_{video_format}"
4242

tests/validation/tests/dual/ffmpeg/test_rx_ffmpeg_tx_ffmpeg_rgb24_multiple_dual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_rx_ffmpeg_tx_ffmpeg_rgb24_multiple_dual(
3939

4040
tx_host = host_list[0]
4141
rx_host = host_list[1]
42-
42+
4343
capture_cfg = dict(test_config.get("capture_cfg", {}))
4444
capture_cfg["test_name"] = (
4545
f"test_rx_ffmpeg_tx_ffmpeg_rgb24_multiple_dual_{video_format_1}_{video_format_2}"

tests/validation/tests/dual/ffmpeg/test_rx_ffmpeg_tx_rxtxapp_dual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_rx_ffmpeg_tx_rxtxapp_dual(
4242

4343
tx_host = host_list[0]
4444
rx_host = host_list[1]
45-
45+
4646
capture_cfg = dict(test_config.get("capture_cfg", {}))
4747
capture_cfg["test_name"] = (
4848
f"test_rx_ffmpeg_tx_rxtxapp_dual_{video_format}_{output_format}_{multiple_sessions}_{test_time_multipler}"

0 commit comments

Comments
 (0)