summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorMagnus Svensson <msvensson@mysql.com>2009-01-24 13:02:27 +0100
committerMagnus Svensson <msvensson@mysql.com>2009-01-24 13:02:27 +0100
commitbbdd0576ee58233ce99bcb5290bbff5bbb15d905 (patch)
tree4ccbc5c3d8abdc70251429e5c6c7a60ecde780b7 /mysql-test/mysql-test-run.pl
parent0cb63777a7414514b91b9823f6b2dd39be601d0e (diff)
downloadmariadb-git-bbdd0576ee58233ce99bcb5290bbff5bbb15d905.tar.gz
WL#4189 mtr.pl v2
- Clear test variables "comment" and "logfile" to make sure thay aren't already set from previous run of same test - Print warning if test result already set and set it anyway
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index b9963ce23aa..4aa5030c6f5 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -698,6 +698,12 @@ sub run_worker ($) {
if ($line eq 'TESTCASE'){
my $test= My::Test::read_test($server);
#$test->print_test();
+
+ # Clear comment and logfile, to avoid
+ # reusing them from previous test
+ delete($test->{'comment'});
+ delete($test->{'logfile'});
+
run_testcase($test);
#$test->{result}= 'MTR_RES_PASSED';
# Send it back, now with results set