tests/fate-run: Don't create unnecessary CRC-files, forward errors

These CRC-only files (the output of the CRC-muxer) are only used once,
so they need not be preserved. Furthermore, errors from ffmpeg (used
for creating the CRC) are no longer ignored with this patch.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-05-03 05:15:06 +02:00
parent bf8411c495
commit bf1337f99c
1 changed files with 2 additions and 4 deletions

View File

@ -272,8 +272,6 @@ stream_remux(){
ffmpeg2="$target_exec ${target_path}/ffmpeg${PROGSUF}${EXECSUF}" ffmpeg2="$target_exec ${target_path}/ffmpeg${PROGSUF}${EXECSUF}"
raw_src="${target_path}/tests/vsynth1/%02d.pgm" raw_src="${target_path}/tests/vsynth1/%02d.pgm"
pcm_src="${target_path}/tests/data/asynth1.sw" pcm_src="${target_path}/tests/data/asynth1.sw"
crcfile="tests/data/$test.lavf.crc"
target_crcfile="${target_path}/$crcfile"
[ "${V-0}" -gt 0 ] && echov=echov || echov=: [ "${V-0}" -gt 0 ] && echov=echov || echov=:
@ -303,8 +301,8 @@ do_avconv(){
do_avconv_crc(){ do_avconv_crc(){
f="$1" f="$1"
shift shift
run_avconv $* -f crc "$target_crcfile" printf "%s " "$f"
echo "$f $(cat $crcfile)" run_avconv $* -f crc -
} }
lavf_audio(){ lavf_audio(){