Skip to content

Commit 94b399b

Browse files
authored
fix: php version check for tests (GoogleCloudPlatform#1558)
1 parent 53d5893 commit 94b399b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/run_test_suite.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ do
167167
composer -q install
168168
fi
169169
if [ $? != 0 ]; then
170+
# Generate the lock file (required for check-platform-reqs)
171+
composer update --ignore-platform-reqs
170172
# If the PHP required version is too low, skip the test
171-
if composer check-platform-reqs | grep "__root__ requires php" | grep failed ; then
173+
if composer check-platform-reqs | grep "requires php" | grep failed ; then
172174
echo "Skipping tests in $DIR (incompatible PHP version)"
173175
else
174176
# Run composer without "-q"

0 commit comments

Comments
 (0)