diff --git a/localtests/test.sh b/localtests/test.sh index 04b88f11d..b5c794a2a 100755 --- a/localtests/test.sh +++ b/localtests/test.sh @@ -86,7 +86,7 @@ start_replication() { mysql_version="$(gh-ost-test-mysql-replica -e "select @@version")" seconds_behind_source="Seconds_Behind_Master" replica_terminology="slave" - if [[ $mysql_version ==* "8.4" ]]; then + if [[ $mysql_version =~ "8.4" ]]; then gh-ost-test-mysql-replica -e "stop replica; start replica;" seconds_behind_source="Seconds_Behind_Source" replica_terminology="replica" diff --git a/script/docker-gh-ost-replica-tests b/script/docker-gh-ost-replica-tests index d2826ed9a..01136cafb 100755 --- a/script/docker-gh-ost-replica-tests +++ b/script/docker-gh-ost-replica-tests @@ -51,7 +51,7 @@ setup() { gh-ost-test-mysql-master -e "grant all on *.* to 'gh-ost'@'%';" sleep 1 - if [[ $TEST_MYSQL_IMAGE ==* "mysql:8.4" ]]; then + if [[ $TEST_MYSQL_IMAGE =~ "mysql:8.4" ]]; then gh-ost-test-mysql-replica -e "change replication source to to source_host='mysql-primary', source_port=3307, source_user='repl', source_password='repl', source_auto_position=1;" gh-ost-test-mysql-replica -e "start replica;" else