Skip to content

Commit 6cc1bef

Browse files
author
Jan Lindström
committed
Fix test to do proper cleanup.
1 parent 9e6f3df commit 6cc1bef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mysql-test/suite/encryption/t/innodb-bad-key-change3.test

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ SELECT * FROM t1;
8989
--echo # t1 yes on expecting NOT FOUND
9090
-- let SEARCH_FILE=$t1_IBD
9191
-- source include/search_pattern_in_file.inc
92+
93+
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
94+
--shutdown_server
95+
--source include/wait_until_disconnected.inc
96+
--remove_file $MYSQLTEST_VARDIR/keys1.txt
97+
--write_file $MYSQLTEST_VARDIR/keys1.txt
98+
1;770A8A65DA156D24EE2A093277530142
99+
4;770A8A65DA156D24EE2A093277530143
100+
EOF
101+
102+
--exec echo "restart:--innodb-encrypt-tables --innodb-stats-persistent --plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQLTEST_VARDIR/keys1.txt" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
103+
--enable_reconnect
104+
--source include/wait_until_connected_again.inc
92105
DROP TABLE t1;
93106

94107
# reset system

0 commit comments

Comments
 (0)