mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Simplify MTR for handling multiple invalid options
In 69a4d6ae
, an MTR test was added to verify that we handled multiple invalid
options. However, the logic to perform this test relied on a non-trivial regex
to filter out the noise in the logs.
Instead, we now just simply search for what we expect to be in the logs.
All new code of the whole pull request, including one or several files that are
either new files or modified ones, are contributed under the BSD-new license. I
am contributing on behalf of my employer Amazon Web Services, Inc.
This commit is contained in:
@ -4,13 +4,13 @@ Test bad default storage engine.
|
||||
Test non-numeric value passed to number option.
|
||||
Test that bad value for plugin enum option is rejected correctly.
|
||||
Test to see if multiple unknown options will be displayed in the error output
|
||||
unknown option '--nonexistentoption'
|
||||
unknown option '--alsononexistent'
|
||||
unknown variable 'nonexistentvariable=1'
|
||||
FOUND 1 /unknown option '--nonexistentoption2'/ in mysqltest.log
|
||||
FOUND 1 /unknown option '--alsononexistent'/ in mysqltest.log
|
||||
FOUND 1 /unknown variable 'nonexistentvariable=1'/ in mysqltest.log
|
||||
Test to see if multiple ambiguous options and invalid arguments will be displayed in the error output
|
||||
Error while setting value 'invalid_value' to 'sql_mode'
|
||||
ambiguous option '--character' (character-set-client-handshake, character_sets_dir)
|
||||
option '--bootstrap' cannot take an argument
|
||||
FOUND 1 /Error while setting value 'invalid_value' to 'sql_mode'/ in mysqltest.log
|
||||
FOUND 1 /ambiguous option '--character'/ in mysqltest.log
|
||||
FOUND 1 /option '--bootstrap' cannot take an argument/ in mysqltest.log
|
||||
Test that --help --verbose works
|
||||
Test that --not-known-option --help --verbose gives error
|
||||
Done.
|
||||
|
Reference in New Issue
Block a user