Skip to content

Commit 789d247

Browse files
author
Shlomi Noach
committed
localtests support throttle flag file
1 parent 9f81a23 commit 789d247

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
@@ -14,6 +14,7 @@ ghost_binary=""
1414
exec_command_file=/tmp/gh-ost-test.bash
1515
orig_content_output_file=/tmp/gh-ost-test.orig.content.csv
1616
ghost_content_output_file=/tmp/gh-ost-test.ghost.content.csv
17+
throttle_flag_file=/tmp/gh-ost-test.ghost.throttle.flag
1718

1819
master_host=
1920
master_port=
@@ -108,7 +109,7 @@ test_single() {
108109
gh-ost-test-mysql-master --default-character-set=utf8mb4 test -e "set @@global.sql_mode='$(cat $tests_path/$test_name/sql_mode)'"
109110
gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e "set @@global.sql_mode='$(cat $tests_path/$test_name/sql_mode)'"
110111
fi
111-
112+
112113
gh-ost-test-mysql-master --default-character-set=utf8mb4 test < $tests_path/$test_name/create.sql
113114

114115
extra_args=""
@@ -145,6 +146,7 @@ test_single() {
145146
--initially-drop-old-table \
146147
--initially-drop-ghost-table \
147148
--throttle-query='select timestampdiff(second, min(last_update), now()) < 5 from _gh_ost_test_ghc' \
149+
--throttle-flag-file=$throttle_flag_file \
148150
--serve-socket-file=/tmp/gh-ost.test.sock \
149151
--initially-drop-socket-file \
150152
--test-on-replica \

0 commit comments

Comments
 (0)