summaryrefslogtreecommitdiff
path: root/mysql-test/lib/mtr_report.pm
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2011-02-21 13:56:43 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2011-02-21 13:56:43 +0100
commit2c4f6e5c632f02880490191f5a8ea407f4d35ade (patch)
tree996faa658cd4d6655682a62a444ee70e355c0838 /mysql-test/lib/mtr_report.pm
parent6746a5dc0fdd2f9b8bd33ad8bc48cd844eaa50d5 (diff)
downloadmariadb-git-2c4f6e5c632f02880490191f5a8ea407f4d35ade.tar.gz
Bug #11766640 (59789) Hook the invocation of unit tests in MTR.
Added code to call 'ctest' if the needed cmake file is present Will do so unless tests/suited named on mtr command line Also add option to turn on/off Will be made to look like a test 'unit-test' which counts towards total Extracts summary report and any test failures from ctest output Addendum: added override to turn off in PB, add back in selected invocations
Diffstat (limited to 'mysql-test/lib/mtr_report.pm')
-rw-r--r--mysql-test/lib/mtr_report.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm
index f86be0d4c68..dcf83260720 100644
--- a/mysql-test/lib/mtr_report.pm
+++ b/mysql-test/lib/mtr_report.pm
@@ -72,7 +72,7 @@ sub _mtr_report_test_name ($) {
print _name(). _timestamp();
printf "%-40s ", $tname;
my $worker = $tinfo->{worker};
- printf "w$worker " if $worker;
+ print "w$worker " if defined $worker;
return $tname;
}