test/test_flac.sh : Make it work for 'make distcheck'.

An output file was being set to read only and hence could not be
overwritten by a later test. Not sure why this only affected the
'make distcheck' target.
This commit is contained in:
Erik de Castro Lopo 2015-02-24 18:04:44 +11:00
parent 29db3fbf1c
commit 1ddeb2640e

View File

@ -1167,6 +1167,8 @@ flac2flac ()
args="$3"
expect="$case-expect.meta"
echo -n "$2... "
# The 'make distcheck' target needs this.
chmod u+w $file
run_flac -f -o out.flac $args $file || die "ERROR encoding FLAC file"
run_metaflac --list out.flac | filter > out.meta || die "ERROR listing metadata of output FLAC file"
diff -q -w $expect out.meta 2>/dev/null || die "ERROR: metadata does not match expected $expect"