diff options
author | msvensson@neptunus.(none) <> | 2005-09-20 14:11:58 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2005-09-20 14:11:58 +0200 |
commit | 523d2aad946e203d121a7f2236e363d33658b778 (patch) | |
tree | 30ceb7fd83e298b75ba1c741948bc074329fc087 /mysql-test/mysql-test-run.pl | |
parent | 913f0bd6108f262c743d708196357f0f13c0efb2 (diff) | |
download | mariadb-git-523d2aad946e203d121a7f2236e363d33658b778.tar.gz |
BUG#12959 mysqltest crashes if testcase passed with -x option
- Enable testcases after help from Serg
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 013b8d49967..eed80b1e339 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2155,11 +2155,6 @@ sub run_mysqltest ($) { mtr_add_arg($args, "--big-test"); } - if ( $opt_record ) - { - mtr_add_arg($args, "--record"); - } - if ( $opt_compress ) { mtr_add_arg($args, "--compress"); @@ -2185,8 +2180,6 @@ sub run_mysqltest ($) { $glob_mysql_test_dir); } - mtr_add_arg($args, "-R"); - mtr_add_arg($args, $tinfo->{'result_file'}); # ---------------------------------------------------------------------- # If embedded server, we create server args to give mysqltest to pass on @@ -2202,6 +2195,18 @@ sub run_mysqltest ($) { # ---------------------------------------------------------------------- $ENV{'MYSQL_TEST'}= "$exe_mysqltest " . join(" ", @$args); + # ---------------------------------------------------------------------- + # Add arguments that should not go into the MYSQL_TEST env var + # ---------------------------------------------------------------------- + + mtr_add_arg($args, "-R"); + mtr_add_arg($args, $tinfo->{'result_file'}); + + if ( $opt_record ) + { + mtr_add_arg($args, "--record"); + } + return mtr_run_test($exe,$args,$tinfo->{'path'},"",$path_timefile,""); } |