Skip to content

Commit 69e0551

Browse files
committed
Improve error handling in test-svn.sh
1 parent 2017f16 commit 69e0551

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-svn.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
55
svn --help > /dev/null || { echo "Fail: could not find 'svn' executable"; exit 1; }
66
svnadmin --help > /dev/null || { echo "Fail: could not find 'svnadmin' executable"; exit 1; }
77

8-
trap cleanup INT
8+
trap cleanup INT ERR
99

1010
function cleanup() {
1111
cd "$DIR/test-data"
1212
rm -rf proj proj-working svnrepo
1313
}
1414

15-
set -ex
15+
set -eEx
1616

1717
cd test-data
1818

@@ -32,7 +32,7 @@ cd proj-working/trunk
3232
../../../composer-lock-diff
3333

3434
cd ..
35-
../../composer-lock-diff -p trunk/
35+
../../composer-lock-diff -p trunk
3636

3737
cd ..
3838
rm -rf proj proj-working svnrepo

0 commit comments

Comments
 (0)