Skip to content

Commit

Permalink
Fix test to do proper cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lindström committed Sep 15, 2015
1 parent 9e6f3df commit 6cc1bef
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mysql-test/suite/encryption/t/innodb-bad-key-change3.test
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ SELECT * FROM t1;
--echo # t1 yes on expecting NOT FOUND
-- let SEARCH_FILE=$t1_IBD
-- source include/search_pattern_in_file.inc

--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--shutdown_server
--source include/wait_until_disconnected.inc
--remove_file $MYSQLTEST_VARDIR/keys1.txt
--write_file $MYSQLTEST_VARDIR/keys1.txt
1;770A8A65DA156D24EE2A093277530142
4;770A8A65DA156D24EE2A093277530143
EOF

--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
--enable_reconnect
--source include/wait_until_connected_again.inc
DROP TABLE t1;

# reset system
Expand Down

0 comments on commit 6cc1bef

Please sign in to comment.