diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-02-06 23:16:21 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-02-06 23:16:21 +0100 |
commit | e83dd9b517239dedb727263c7eeda89ada6d4c57 (patch) | |
tree | b038dd1e6cd684484661bc8ee00b8900d18eb836 /mysql-test/lib | |
parent | 3320a4bffb715c7596d9daded90ff1b37e8229f2 (diff) | |
download | mariadb-git-e83dd9b517239dedb727263c7eeda89ada6d4c57.tar.gz |
mtr: support for rdiff files
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_cases.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mysql-test/lib/mtr_cases.pm b/mysql-test/lib/mtr_cases.pm index cd90f4bea43..6d8a515bb3a 100644 --- a/mysql-test/lib/mtr_cases.pm +++ b/mysql-test/lib/mtr_cases.pm @@ -29,7 +29,6 @@ use mtr_report; use mtr_match; # Options used for the collect phase -our $start_from; our $skip_rpl; our $do_test; our $skip_test; @@ -862,14 +861,17 @@ sub collect_one_test_case { if ($tinfo->{combinations}) { my $re = '(?:' . join('|', @{$tinfo->{combinations}}) . ')'; my $found = 0; - for (<$resdir/$tname,*.result>) { - m|$tname((?:,$re)+)\.result$| or next; - my $combs = $&; + for (<$resdir/$tname,*.{rdiff,result}>) { + my ($combs, $ext) = m@$tname((?:,$re)+)\.(rdiff|result)$@ or next; my @commas = ($combs =~ m/,/g); # prefer the most specific result file if (@commas > $found) { $found = @commas; $tinfo->{result_file} = $_; + if ($ext eq 'rdiff' and not $::exe_patch) { + $tinfo->{skip} = 1; + $tinfo->{comment} = "requires patch executable"; + } } } } |