Skip to content

Commit 9ed5da0

Browse files
committed
encapp: for the heic release test just run the first matching codec
Signed-off-by: Johan Blome <johan@gunhildcarling.net>
1 parent d465503 commit 9ed5da0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/tests/system/test_tiled_heic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,16 @@ def test_tiled_heic_encoding(setup_encapp, temp_dir, test_pattern):
200200
result = subprocess.run(
201201
[
202202
f"{PYTHON_ENV} {ENCAPP_SCRIPT_PATH} "
203-
f"--serial {ANDROID_SERIAL} list --codec '.*hevc.*' --output {output_path}/"
203+
f"--serial {ANDROID_SERIAL} list --codec hevc --output {output_path}/"
204204
],
205205
shell=True,
206206
check=True,
207207
text=True,
208208
stderr=subprocess.STDOUT,
209209
stdout=subprocess.PIPE,
210210
)
211-
codec = result.stdout.strip()
211+
# Just run the first one
212+
codec = result.stdout.strip().split("\n")[0]
212213
if not codec or "hevc" not in codec.lower():
213214
pytest.skip("No HEVC encoder found on device")
214215
except subprocess.CalledProcessError as err:
@@ -231,7 +232,7 @@ def test_tiled_heic_encoding(setup_encapp, temp_dir, test_pattern):
231232
description: 'System test for tiled HEIC encoding'
232233
}}
233234
input {{
234-
filepath: \"{test_pattern}\"
235+
filepath: '{test_pattern}'
235236
resolution: '1280x1280'
236237
pix_fmt: yuv420p
237238
framerate: 1

0 commit comments

Comments
 (0)