use subprocess.check_call

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-29 13:49:24 -05:00
parent 32be693fd7
commit 7a74994a02
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -52,7 +52,7 @@ class TestConvertThumbnail(unittest.TestCase):
test_data_dir = 'test/testdata/thumbnails'
generated_file = f'{test_data_dir}/empty.webp'
subprocess.run([
subprocess.check_call([
pp.executable, '-y', '-f', 'lavfi', '-i', 'color=c=black:s=320x320',
'-c:v', 'libwebp', '-pix_fmt', 'yuv420p', '-vframes', '1', generated_file,
], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)