1
# include/wait_show_pattern.inc
5
# Waits until output produced by SHOW statement which particular type is
6
# specified as parameter matches certain pattern or maximum time reached.
10
# Only the first row produced by the parameter statement is checked.
14
# let $show_type= <Tail of SHOW statement>;
15
# let $show_pattern= 'Pattern to be used for LIKE matching';
16
# --source wait_show_pattern.inc
20
# alter_table-big.test, wait_slave_status.inc
24
# wait_slave_status.inc, wait_condition.inc (>=5.1)
26
###############################################################################
30
# We accept to wait maximum 30 seconds (0.2 sec/loop).
31
let $wait_counter= 150;
34
let $result= `SHOW $show_type`;
35
let $success= `SELECT '$result' LIKE $show_pattern`;
48
echo Timeout in wait_show_pattern.inc \$show_type= $show_type \$show_pattern= $show_pattern (\$result= '$result');