We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e5ea0 commit 4d0d4d1Copy full SHA for 4d0d4d1
utils/behat-tags.php
@@ -41,7 +41,8 @@ function version_tags(
41
}
42
43
function get_db_version() {
44
- preg_match( '@[0-9]+\.[0-9]+\.[0-9]+@', exec( 'mysql -V' ), $version );
+ $version_string = exec( getenv( 'WP_CLI_TEST_DBTYPE' ) === 'mariadb' ? 'mariadb --version' : 'mysql -V' );
45
+ preg_match( '@[0-9]+\.[0-9]+\.[0-9]+@', $version_string, $version );
46
return $version[0];
47
48
0 commit comments