commit | 751286be390bcfa0dae1b56ae1eb81732e2b09b7 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Mar 10 13:41:04 2015 +0000 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Mar 10 13:43:56 2015 +0000 |
tree | a489cb35298dc35471bdd58d570d1bcc769f0a34 | |
parent | bcc2683409eb2dad8d6166901a093277c1dd0af8 [diff] [blame] |
Make tests/*.sh runnable from anywhere
diff --git a/tests/compat.sh b/tests/compat.sh index cd55d05..554adef 100755 --- a/tests/compat.sh +++ b/tests/compat.sh
@@ -955,6 +955,11 @@ # MAIN # +if cd $( dirname $0 ); then :; else + echo "cd $( dirname $0 ) failed" >&2 + exit 1 +fi + get_options "$@" # sanity checks, avoid an avalanche of errors