File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ download() {
25
25
fi
26
26
}
27
27
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
29
33
WP_TESTS_TAG=" branches/$WP_VERSION "
30
34
elif [[ $WP_VERSION =~ [0-9]+\. [0-9]+\. [0-9]+ ]]; then
31
35
if [[ $WP_VERSION =~ [0-9]+\. [0-9]+\. [0] ]]; then
47
51
fi
48
52
WP_TESTS_TAG=" tags/$LATEST_VERSION "
49
53
fi
50
-
51
54
set -ex
52
55
53
56
install_wp () {
@@ -95,7 +98,7 @@ install_wp() {
95
98
install_test_suite () {
96
99
# portable in-place argument for both GNU sed and Mac OSX sed
97
100
if [[ $( uname -s) == ' Darwin' ]]; then
98
- local ioption=' -i .bak'
101
+ local ioption=' -i.bak'
99
102
else
100
103
local ioption=' -i'
101
104
fi
You can’t perform that action at this time.
0 commit comments