From 1ac0b8dc51ecbdcb746e574ab280ddd12e17a754 Mon Sep 17 00:00:00 2001 From: tknew2 Date: Sat, 11 Oct 2014 15:47:07 +0200 Subject: [PATCH] set -o verbose for bash tests --- test/bash/include.sh | 2 ++ test/index.sh | 3 +++ test/main.sh | 3 +++ 3 files changed, 8 insertions(+) diff --git a/test/bash/include.sh b/test/bash/include.sh index 25c5c8a0..0b4afd8c 100644 --- a/test/bash/include.sh +++ b/test/bash/include.sh @@ -20,6 +20,8 @@ script="echo" file_path="test/fixtures" +set -o verbose + $pm2 kill # Determine wget / curl diff --git a/test/index.sh b/test/index.sh index 83f4be6c..8b93353f 100644 --- a/test/index.sh +++ b/test/index.sh @@ -3,7 +3,10 @@ alias mocha='../node_modules/mocha/bin/mocha' pm2="`type -P node` `pwd`/bin/pm2" +# Abort script at first error set -e +# Display all commands executed +set -o verbose function fail { echo -e "######## \033[31m ✘ $1\033[0m" diff --git a/test/main.sh b/test/main.sh index 8ebd4521..1fd53914 100644 --- a/test/main.sh +++ b/test/main.sh @@ -3,7 +3,10 @@ SRC=$(cd $(dirname "$0"); pwd) source "${SRC}/bash/include.sh" +# Abort script at first error set -e +# Display all commands executed +set -o verbose echo "####################### DEBUG ############################" echo "PM2 Command = " $pm2