diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2013-04-25 15:20:23 +0200 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-26 06:33:37 +1000 |
commit | 690205baf3c970f855cc267ef0976dedaf8bbe04 (patch) | |
tree | 6b4dae2bd8a8759f2848a03eaa36dec850a39931 | |
parent | 69c44a51de295a6eb91ab0fdb1777d222395dab0 (diff) | |
download | flac-690205baf3c970f855cc267ef0976dedaf8bbe04.tar.gz |
Add set -e to stop test_metaflac.sh
test_metaflac.sh wasn't aborting when replaygain values were
incorrect because the die() function was embedded in a pipe.
set -e was added so the script exits with a non-zero exit code
when die is called in a pipe.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
-rwxr-xr-x | test/test_metaflac.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_metaflac.sh b/test/test_metaflac.sh index 9a132918..2badf570 100755 --- a/test/test_metaflac.sh +++ b/test/test_metaflac.sh @@ -452,6 +452,8 @@ REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 37800/-14.18" REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 44100/-14.17" REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 48000/-14.16:1:2:4" +set -e + for ACTION in $REPLAYGAIN_FREQ ; do if [ -n "${ACTION##*:*}" ] ; then HARMONICS=1 |