Skip to content

Commit a0a7b52

Browse files
committed
Remove res variable and simply exit 1 if tests fail
1 parent 7012725 commit a0a7b52

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

script/cibuild

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,9 @@ set -e
55
# Enable verbose logging of ssh commands
66
export GHE_VERBOSE_SSH=true
77

8-
res=true
9-
version=2.21.0
10-
echo "==> Running test suite with GHE_TEST_REMOTE_VERSION=$version"
11-
export GHE_TEST_REMOTE_VERSION="$version"
128
if ! find test -name "test-*.sh" -print0 | xargs -0 -P 4 -n 1 /bin/bash; then
13-
res=false
9+
exit 1
1410
fi
15-
echo
16-
17-
# If any of the tests above failed, exit non-zero
18-
$res
1911

2012
# Bail out when --no-package given
2113
[ "$1" = "--no-package" ] && exit 0

0 commit comments

Comments
 (0)