Skip to content

Commit b975b69

Browse files
committed
Fix for single host gstreamer tests
1 parent c3e3867 commit b975b69

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

tests/validation/tests/single/gstreamer/__init__.py

100644100755
File mode changed.

tests/validation/tests/single/gstreamer/anc_format/test_anc_format.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_st40p_fps_size(
5050
output_path=os.path.join(media, "output_anc.txt"),
5151
rx_payload_type=113,
5252
rx_queues=4,
53-
timeout=61,
53+
timeout=15,
5454
)
5555

5656
capture_cfg = dict(test_config.get("capture_cfg", {}))
@@ -66,7 +66,7 @@ def test_st40p_fps_size(
6666
test_time=test_time,
6767
host=host,
6868
tx_first=False,
69-
sleep_interval=0,
69+
sleep_interval=3,
7070
capture_cfg=capture_cfg,
7171
)
7272
finally:
@@ -117,7 +117,7 @@ def test_st40p_framebuff(
117117
output_path=os.path.join(media, "output_anc.txt"),
118118
rx_payload_type=113,
119119
rx_queues=4,
120-
timeout=61,
120+
timeout=15,
121121
)
122122
capture_cfg = dict(test_config.get("capture_cfg", {}))
123123
capture_cfg["test_name"] = f"test_st40p_framebuff_{fps}_{file_size_kb}_{framebuff}"
@@ -131,9 +131,9 @@ def test_st40p_framebuff(
131131
test_time=test_time,
132132
host=host,
133133
tx_first=False,
134-
sleep_interval=0,
134+
sleep_interval=3,
135135
capture_cfg=capture_cfg,
136-
)
136+
)
137137
finally:
138138
# Remove the files after the test
139139
media_create.remove_file(input_file_path, host=host)

tests/validation/tests/single/gstreamer/audio_format/__init__.py

100644100755
File mode changed.

tests/validation/tests/single/gstreamer/audio_format/test_audio_format.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from mtl_engine import GstreamerApp
99

1010

11-
@pytest.mark.parametrize("audio_format", ["s8", "s16le", "s24le"])
12-
@pytest.mark.parametrize("audio_channel", [1, 2])
11+
@pytest.mark.parametrize("audio_format", ["S8", "S16BE", "S24BE"])
12+
@pytest.mark.parametrize("audio_channel", [1, 2, 6, 8])
1313
@pytest.mark.parametrize("audio_rate", [44100, 48000, 96000])
1414
def test_audio_format(
1515
hosts,
@@ -28,15 +28,15 @@ def test_audio_format(
2828

2929
input_file_path = os.path.join(media, "test_audio.pcm")
3030

31-
media_create.create_audio_file_sox(
32-
sample_rate=audio_rate,
33-
channels=audio_channel,
34-
bit_depth=GstreamerApp.audio_format_change(audio_format),
35-
duration=10,
36-
frequency=440,
37-
output_path=input_file_path,
38-
host=host,
39-
)
31+
# media_create.create_audio_file_sox(
32+
# sample_rate=audio_rate,
33+
# channels=audio_channel,
34+
# bit_depth=GstreamerApp.audio_format_change(audio_format),
35+
# duration=10,
36+
# frequency=440,
37+
# output_path=input_file_path,
38+
# host=host,
39+
# )
4040

4141
tx_config = GstreamerApp.setup_gstreamer_st30_tx_pipeline(
4242
build=build,
@@ -79,5 +79,6 @@ def test_audio_format(
7979
capture_cfg=capture_cfg,
8080
)
8181
finally:
82-
media_create.remove_file(input_file_path, host=host)
82+
pass
83+
#media_create.remove_file(input_file_path, host=host)
8384
media_create.remove_file(os.path.join(media, "output_audio.pcm"), host=host)

tests/validation/tests/single/gstreamer/video_format/__init__.py

100644100755
File mode changed.

tests/validation/tests/single/gstreamer/video_resolution/__init__.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)