Skip to content

Commit b8e02df

Browse files
author
Shlomi Noach
committed
reading original_sql_mode once
1 parent 789d247 commit b8e02df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

localtests/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ master_host=
2020
master_port=
2121
replica_host=
2222
replica_port=
23+
original_sql_mode=
2324

2425
OPTIND=1
2526
while getopts "b:" OPTION
@@ -46,6 +47,8 @@ verify_master_and_replica() {
4647
echo "Cannot enable event_scheduler on master"
4748
exit 1
4849
fi
50+
original_sql_mode="$(gh-ost-test-mysql-master -e "select @@global.sql_mode" -s -s)"
51+
echo "sql_mode on master is ${original_sql_mode}"
4952

5053
if [ "$(gh-ost-test-mysql-replica -e "select 1" -ss)" != "1" ] ; then
5154
echo "Cannot verify gh-ost-test-mysql-replica"
@@ -88,7 +91,6 @@ start_replication() {
8891
test_single() {
8992
local test_name
9093
test_name="$1"
91-
original_sql_mode="$(gh-ost-test-mysql-master -e "select @@global.sql_mode" -s -s)"
9294

9395
if [ -f $tests_path/$test_name/ignore_versions ] ; then
9496
ignore_versions=$(cat $tests_path/$test_name/ignore_versions)

0 commit comments

Comments
 (0)