From 0896e95e2c6e065b36a42c5b05fae5686e1b4b70 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sun, 1 Apr 2018 02:11:37 +0100 Subject: [PATCH] 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. --- test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test b/test index aeb9c51c..71ce18aa 100755 --- a/test +++ b/test @@ -1,4 +1,7 @@ #/bin/sh +set -o errexit +set -o nounset +set -o pipefail UNIT2="$(which unit2)"