Skip to content

Commit c68fa22

Browse files
committed
Make sure Behat tags work with latest and trunk strings
1 parent 316da1d commit c68fa22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/run-behat-tests

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ if [ ! -d "features" ]; then
55
exit 0;
66
fi
77

8+
# Turn WP_VERSION into an actual number to make sure our tags work correctly.
9+
if [ $WP_VERSION = "latest" ]; then
10+
export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current")
11+
fi
12+
813
# To retrieve the Behat root folder, we start with this scripts location
914
SOURCE="${BASH_SOURCE[0]}"
1015

0 commit comments

Comments
 (0)