diff options
author | unknown <msvensson@neptunus.(none)> | 2006-11-21 15:16:12 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-11-21 15:16:12 +0100 |
commit | d4aadb0613ab6cfbfd2210c9670a861cc595dc6e (patch) | |
tree | 5b1e755834f69bd139330a7b1a5a55e0adc32f8b /mysql-test/lib/mtr_report.pl | |
parent | 0bfad0da5cd9f5f87f5c23024bc62b16e2972ac2 (diff) | |
download | mariadb-git-d4aadb0613ab6cfbfd2210c9670a861cc595dc6e.tar.gz |
Get name for .reject and .log files from result file name
Diffstat (limited to 'mysql-test/lib/mtr_report.pl')
-rw-r--r-- | mysql-test/lib/mtr_report.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl index 8d7de9d1a4b..758e98984b8 100644 --- a/mysql-test/lib/mtr_report.pl +++ b/mysql-test/lib/mtr_report.pl @@ -34,7 +34,12 @@ sub mtr_verbose (@); # We can't use diff -u or diff -a as these are not portable sub mtr_show_failed_diff ($) { - my $tname= shift; + my $result_file_name= shift; + + # The reject and log files have been dumped to + # to filenames based on the result_file's name + my $tname= basename($result_file_name); + $tname=~ s/\..*$//; my $reject_file= "r/$tname.reject"; my $result_file= "r/$tname.result"; |