Commit bf81d2ab authored by unknown's avatar unknown

Use mysqltest builtin $MYSQL_SERVER_VERSIOn to mask version that mysql_upgrade reports

parent 5bedd273
...@@ -7,10 +7,6 @@ ...@@ -7,10 +7,6 @@
select LENGTH("$MYSQL_UPGRADE")>0 as have_mysql_upgrade; select LENGTH("$MYSQL_UPGRADE")>0 as have_mysql_upgrade;
--enable_query_log --enable_query_log
# Get version of the server so it can be masked out in the
# error messages from mysql_upgrade
let $VERSION=`select LEFT(version(), 6)`;
# #
# Basic test that we can run mysql_upgrde and that it finds the # Basic test that we can run mysql_upgrde and that it finds the
# expected binaries it uses. # expected binaries it uses.
...@@ -22,7 +18,7 @@ let $VERSION=`select LEFT(version(), 6)`; ...@@ -22,7 +18,7 @@ let $VERSION=`select LEFT(version(), 6)`;
file_exists $MYSQLTEST_VARDIR/master-data/mysql_upgrade_info; file_exists $MYSQLTEST_VARDIR/master-data/mysql_upgrade_info;
--echo Run it again - should say already completed --echo Run it again - should say already completed
--replace_result $VERSION VERSION --replace_result $MYSQL_SERVER_VERSION VERSION
--error 1 --error 1
--exec $MYSQL_UPGRADE --skip-verbose 2>&1 --exec $MYSQL_UPGRADE --skip-verbose 2>&1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment