Skip to content

Commit 6a1c352

Browse files
committed
Simplify version check
1 parent 37d7b51 commit 6a1c352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test-ghe-restore.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ begin_test "ghe-restore fails when restore 2.9/2.10 snapshot without audit log m
341341
set -e
342342

343343
# noop if not testing against 2.11
344-
if [ "$GHE_VERSION_MAJOR" -ne 2 ] && [ "$GHE_VERSION_MINOR" -ne 11 ]; then
344+
if [ "$(version $GHE_REMOTE_VERSION)" -ne "$(version 2.11.0)" ]; then
345345
skip_test
346346
fi
347347

@@ -368,7 +368,7 @@ begin_test "ghe-restore force restore of 2.9/2.10 snapshot without audit log mig
368368
set -e
369369

370370
# noop if not testing against 2.11
371-
if [ "$GHE_VERSION_MAJOR" -ne 2 ] && [ "$GHE_VERSION_MINOR" -ne 11 ]; then
371+
if [ "$(version $GHE_REMOTE_VERSION)" -ne "$(version 2.11.0)" ]; then
372372
skip_test
373373
fi
374374

0 commit comments

Comments
 (0)