Skip to content

Commit fbd506c

Browse files
committed
Remove extra loop
1 parent 1bb16c9 commit fbd506c

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

script/cibuild

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,19 @@
22
# Usage: script/cibuild [--no-package]
33
set -e
44

5-
# GHE appliance versions to run tests against. Remote metadata files are put in
6-
# place with this version at the beginning of each test and many commands have
7-
# conditional logic based on the remote version. Running the suite against
8-
# different major versions ensures we're covering these conditional paths.
9-
REMOTE_VERSIONS="2.19.0 2.20.0 2.21.0"
10-
115
# Enable verbose logging of ssh commands
126
export GHE_VERBOSE_SSH=true
137

14-
# Run over all remote versions and run entire test suite against each
158
res=true
16-
for version in $REMOTE_VERSIONS
17-
do
18-
echo "==> Running testsuite with GHE_TEST_REMOTE_VERSION=$version"
19-
export GHE_TEST_REMOTE_VERSION="$version"
20-
if ! find test -name "test-*.sh" -print0 | xargs -0 -P 4 -n 1 /bin/bash; then
21-
res=false
22-
fi
23-
echo
24-
done
9+
version=2.21.0
10+
echo "==> Running testsuite with GHE_TEST_REMOTE_VERSION=$version"
11+
export GHE_TEST_REMOTE_VERSION="$version"
12+
if ! find test -name "test-*.sh" -print0 | xargs -0 -P 4 -n 1 /bin/bash; then
13+
res=false
14+
fi
15+
echo
2516

26-
# If any of the version tests failed, exit non-zero
17+
# If any of the tests above failed, exit non-zero
2718
$res
2819

2920
# Bail out when --no-package given

0 commit comments

Comments
 (0)