| 1 |
--source include/no_valgrind_without_big.inc |
| 2 |
|
| 3 |
--echo #----------------------------------------------------------------------- |
| 4 |
--echo # Setup |
| 5 |
let restart_log= $MYSQLTEST_VARDIR/log/my_restart.err; |
| 6 |
let SEARCH_FILE= $restart_log; |
| 7 |
let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect; |
| 8 |
|
| 9 |
--echo # Try to restart server with invalid value for --secure-file-priv |
| 10 |
--exec echo "wait" > $restart_file |
| 11 |
--shutdown_server |
| 12 |
--source include/wait_until_disconnected.inc |
| 13 |
|
| 14 |
--error 0,1 |
| 15 |
--remove_file $restart_log |
| 16 |
|
| 17 |
# Following should fail |
| 18 |
--error 1 |
| 19 |
--exec $MYSQLD_CMD --secure-file-priv=blahblahblah --loose-console > $restart_log 2>&1 |
| 20 |
|
| 21 |
--echo # Search for : Failed to access directory for --secure-file-priv. |
| 22 |
let SEARCH_PATTERN= Failed to access directory for --secure-file-priv; |
| 23 |
--source include/search_pattern.inc |
| 24 |
|
| 25 |
--echo # Search for : No such file or directory |
| 26 |
let SEARCH_PATTERN= No such file or directory; |
| 27 |
--source include/search_pattern.inc |
| 28 |
|
| 29 |
--remove_file $restart_log 10 |
| 30 |
|
| 31 |
--source include/wait_until_disconnected.inc |
| 32 |
# Dummy argument for restart |
| 33 |
--exec echo "restart: --ssl" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect |
| 34 |
--enable_reconnect |
| 35 |
--source include/wait_until_connected_again.inc |
| 36 |
--disable_reconnect |
| 37 |
--echo # Restart completed. |
| 38 |
|
| 39 |
--echo # Restart |
| 40 |
--disable_warnings |
| 41 |
--source include/force_restart.inc |
| 42 |
--enable_warnings |
| 43 |
--echo #----------------------------------------------------------------------- |