Skip to content

Commit

Permalink
MDEV-32926 mysql_install_db_win fails on buildbot
Browse files Browse the repository at this point in the history
In mysql_install_db_win_admin test, dump bootstrap output in case of
bootstrap failure.
  • Loading branch information
vaintroub committed Apr 2, 2024
1 parent 099ca49 commit 40973d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions mysql-test/main/mysql_install_db_win_admin.result
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
use mysql;
Running bootstrap
Creating my.ini file
Removing default user
Allowing remote access for user root
Setting root password
Creation of the database was successful
# Kill the server
# restart: --datadir=MYSQLTEST_VARDIR/tmp/ddir
connect root,localhost,root,wrongpass,mysql;
Expand Down
5 changes: 4 additions & 1 deletion mysql-test/main/mysql_install_db_win_admin.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
# and start server from this directory.
let $ddir= $MYSQLTEST_VARDIR/tmp/ddir;
use mysql;
exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=foo -R;
--disable_result_log
exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=foo --verbose-bootstrap -R;
--enable_result_log
--source include/kill_mysqld.inc
let $restart_parameters=--datadir=$ddir;
--source include/start_mysqld.inc

# Check that connect with wrong password succeeds
# (because it can alternatively connect with GSSAPI as admin)
connect (root,localhost,root,wrongpass,mysql);

--source include/kill_mysqld.inc
Expand Down

0 comments on commit 40973d8

Please sign in to comment.