Skip to content

Commit

Permalink
Abort on error for test scripts (test-common.sh set -eo pipefail).
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
  • Loading branch information
swesterfeld committed Dec 29, 2024
1 parent 15e4e56 commit 2b29f3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/hls-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ if [ "x$Q" == "x1" ] && [ -z "$V" ]; then
FFMPEG_Q="-v quiet"
fi

set -e

HLS_DIR=hls-test-dir.$$
mkdir -p $HLS_DIR

Expand Down
2 changes: 0 additions & 2 deletions tests/raw-format-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

source test-common.sh

set -e

IN_WAV=test-raw-format.wav
OUT_WAV=test-raw-format-out.wav
OUT2_WAV=test-raw-format-out2.wav
Expand Down
4 changes: 4 additions & 0 deletions tests/test-common.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ AUDIOWMARK=@top_builddir@/src/audiowmark
TEST_MSG=f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0
TOP_BUILDDIR=@top_builddir@

## abort on error

set -eo pipefail

# common shell functions

die()
Expand Down

0 comments on commit 2b29f3f

Please sign in to comment.