Set strict mode in test script

Exits with an error if a command is not found, any undefined variable is
used, or a command in a pipeline returns an error.

Should make Travis detect failed tests.
pull/180/head
Alex Willmer 6 years ago
parent f92d88c241
commit 0896e95e2c

@ -1,4 +1,7 @@
#/bin/sh
set -o errexit
set -o nounset
set -o pipefail
UNIT2="$(which unit2)"

Loading…
Cancel
Save