We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f7721 commit 97df7fcCopy full SHA for 97df7fc
1 file changed
tests/test-plugins.sh
@@ -1,11 +1,14 @@
1
#! /bin/bash
2
3
+set -eo pipefail
4
+
5
repodir="${REPODIR:-"$(git rev-parse --show-toplevel)"}"
6
appdir="${APPDIR:-"$(mktemp --tmpdir --directory AppDir.XXXXXXXX)"}"
7
count=0
8
failed=0
9
10
run_valid_command() {
11
+ set +e
12
((count++))
13
if out="$("$@" 2>&1 )"; then
14
echo -e "[\033[1;32m OK \033[0m]"
@@ -14,9 +17,11 @@ run_valid_command() {
17
((failed++))
15
18
echo "$out"
16
19
fi
20
+ set -e
21
}
22
23
run_invalid_command() {
24
25
26
27
echo -e "[\033[1;31mFAILED\033[0m]"
@@ -25,6 +30,7 @@ run_invalid_command() {
30
else
31
32
33
28
34
29
35
36
while IFS= read -r -d '' plugin; do
0 commit comments