Skip to content

Commit ccb3361

Browse files
Test: Add netsniff-ng to dual-node tests
1 parent 565f4cb commit ccb3361

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/validation/mtl_engine/ffmpeg_app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ def execute_dual_test(
11091109
tx_proc = None
11101110
# Use RX host for tcpdump capture
11111111
tcpdump = prepare_tcpdump(capture_cfg, rx_host)
1112+
netsniff = prepare_netsniff(capture_cfg, rx_host)
11121113

11131114
try:
11141115
# Start RX pipeline first on RX host
@@ -1139,6 +1140,9 @@ def execute_dual_test(
11391140
if tcpdump:
11401141
logger.info("Starting tcpdump capture...")
11411142
tcpdump.capture(capture_time=capture_cfg.get("capture_time", test_time))
1143+
if netsniff:
1144+
logger.info("Starting netsniff capture...")
1145+
netsniff.capture(capture_time=capture_cfg.get("capture_time", test_time))
11421146

11431147
# Let the test run for the specified duration
11441148
logger.info(f"Running test for {test_time} seconds...")
@@ -1208,6 +1212,8 @@ def execute_dual_test(
12081212
pass
12091213
if tcpdump:
12101214
tcpdump.stop()
1215+
if netsniff:
1216+
netsniff.stop()
12111217
passed = False
12121218
match output_format:
12131219
case "yuv":

0 commit comments

Comments
 (0)