Skip to content

Commit 14bd58d

Browse files
committed
Updated install-wp-tests.sh file with latest changes.
1 parent a636066 commit 14bd58d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/install-wp-tests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ download() {
2525
fi
2626
}
2727

28-
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
28+
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+\-(beta|RC)[0-9]+$ ]]; then
29+
WP_BRANCH=${WP_VERSION%\-*}
30+
WP_TESTS_TAG="branches/$WP_BRANCH"
31+
32+
elif [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
2933
WP_TESTS_TAG="branches/$WP_VERSION"
3034
elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
3135
if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then
@@ -47,7 +51,6 @@ else
4751
fi
4852
WP_TESTS_TAG="tags/$LATEST_VERSION"
4953
fi
50-
5154
set -ex
5255

5356
install_wp() {
@@ -95,7 +98,7 @@ install_wp() {
9598
install_test_suite() {
9699
# portable in-place argument for both GNU sed and Mac OSX sed
97100
if [[ $(uname -s) == 'Darwin' ]]; then
98-
local ioption='-i .bak'
101+
local ioption='-i.bak'
99102
else
100103
local ioption='-i'
101104
fi

0 commit comments

Comments
 (0)