diff --git a/mysql-test/suite/rpl/r/rpl_report_port.result b/mysql-test/suite/rpl/r/rpl_report_port.result index d5a684241bc..ebdd3f889f3 100644 --- a/mysql-test/suite/rpl/r/rpl_report_port.result +++ b/mysql-test/suite/rpl/r/rpl_report_port.result @@ -1,15 +1,8 @@ include/master-slave.inc [connection master] -[The default value shown for the slave's port number is the actual port number of the slave] -SHOW SLAVE HOSTS; -Server_id Host Port Master_id -2 127.0.0.1 SLAVE_PORT 1 -[The default value shown for the slave's port number is the actual port number of the slave] +include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.] include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000] include/start_slave.inc [Slave restarted with the report-port set to some value] -[The value shown for the slave's port number is 9000 which is the value set for report-port] -SHOW SLAVE HOSTS; -Server_id Host Port Master_id -2 127.0.0.1 9000 1 +include/assert.inc [The value shown for the slave's port number is 9000 which is the value set for report-port.] include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_report_port.test b/mysql-test/suite/rpl/t/rpl_report_port.test index 11cb9684090..b1b71a2982c 100644 --- a/mysql-test/suite/rpl/t/rpl_report_port.test +++ b/mysql-test/suite/rpl/t/rpl_report_port.test @@ -21,16 +21,10 @@ source include/master-slave.inc; connection master; ---echo [The default value shown for the slave's port number is the actual port number of the slave] -source include/show_slave_hosts.inc; - -# SLAVE_PORT is the value of the port we should get. - -let $show_statement= SHOW SLAVE HOSTS; -let $field= Port; -let $condition= 'SLAVE_PORT'; -source include/wait_show_condition.inc; ---echo [The default value shown for the slave's port number is the actual port number of the slave] +--let $report_port= query_get_value(SHOW SLAVE HOSTS, Port, 1) +--let assert_text= The default value shown for the slave's port number is the actual port number of the slave. +--let assert_cond= $report_port = "$SLAVE_MYPORT" +--source include/assert.inc # Start the server with some value being passed to the report_port=