diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-04-18 13:28:22 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-05-12 10:16:45 +0200 |
commit | 5441bbd3b1f9e4d0232f8df83a79c51638e51a58 (patch) | |
tree | 2d4c6f49f64eed67bc0625a9fc5c265803445fd6 /mysql-test/mysql-test-run.pl | |
parent | 0a1c0a439aceb55cf32f75d1ce1f4a8646254f60 (diff) | |
download | mariadb-git-5441bbd3b1f9e4d0232f8df83a79c51638e51a58.tar.gz |
./mtr --gdb testname
Make --gdb to take an optional argument *only* if it's
written after '=', not after a space.
followup for 339b9055791
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 703c5030810..6740218ca0a 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1133,7 +1133,7 @@ sub command_line_setup { 'debug' => \$opt_debug, 'debug-common' => \$opt_debug_common, 'debug-server' => \$opt_debug_server, - 'gdb:s' => sub { $opt_gdb = $_[1] || '#' }, + 'gdb=s' => \$opt_gdb, 'client-gdb' => \$opt_client_gdb, 'manual-gdb' => \$opt_manual_gdb, 'manual-lldb' => \$opt_manual_lldb, @@ -1228,6 +1228,9 @@ sub command_line_setup { 'skip-test-list=s' => \@opt_skip_test_list ); + # fix options (that take an optional argument and *only* after = sign + my %fixopt = ( '--gdb' => '--gdb=#' ); + @ARGV = map { $fixopt{$_} or $_ } @ARGV; GetOptions(%options) or usage("Can't read options"); usage("") if $opt_usage; list_options(\%options) if $opt_list_options; |