mirror of
https://github.com/MariaDB/server.git
synced 2025-02-06 22:02:20 +01:00
![Sergei Golubchik](/assets/img/avatar_default.png)
* replace the message away in the test result * remove "feedback plugin:" prefix, it's a server message, not plugin's * downgrade to the warning, because 1) it's not a failure, no operation was aborted, server still works 2) it's something actionable, so not a [Note] either
35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
#
|
|
# Check errors from mysqld--help when providing different datadir
|
|
#
|
|
flush tables;
|
|
|
|
--let $args=--table-cache=5 --max-connections=10 --log-warnings=1 --silent-startup --lower-case-table-names=1 --help --verbose
|
|
|
|
--exec $MYSQLD_CMD $args > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
|
|
--replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
|
|
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err
|
|
|
|
--echo #
|
|
--echo # Check that we don't write any data to wrong or not existing datadir
|
|
--echo #
|
|
|
|
--exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
|
|
--replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
|
|
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err
|
|
|
|
--echo #
|
|
--echo # Check with existing directory
|
|
--echo #
|
|
|
|
--mkdir $MYSQL_TMP_DIR/help
|
|
--exec $MYSQLD_CMD $args --datadir=$MYSQL_TMP_DIR/help > $MYSQL_TMP_DIR/mysqld--help2.txt 2> $MYSQL_TMP_DIR/mysqld--help2.err
|
|
--replace_regex /mysqld/mariadbd/ /\d\d\d\d-\d*-\d* *\d*:\d*:\d* \d* // /^.*failed to retrieve the MAC address\n//
|
|
--cat_file $MYSQL_TMP_DIR/mysqld--help2.err
|
|
--list_files $MYSQL_TMP_DIR/help
|
|
|
|
#
|
|
# Cleanup
|
|
#
|
|
--rmdir $MYSQL_TMP_DIR/help
|
|
--remove_file $MYSQL_TMP_DIR/mysqld--help2.txt
|
|
--remove_file $MYSQL_TMP_DIR/mysqld--help2.err
|