Tests: Fix t_dist_fixme to detect later files.
This commit is contained in:
parent
d09b6a7d2c
commit
2a79e46c46
|
|
@ -21,15 +21,28 @@ if (!-r "$root/.git") {
|
||||||
### Must trim output before and after our file list
|
### Must trim output before and after our file list
|
||||||
my $files = `cd $root && git ls-files --exclude-standard`;
|
my $files = `cd $root && git ls-files --exclude-standard`;
|
||||||
print "ST $files\n" if $Debug;
|
print "ST $files\n" if $Debug;
|
||||||
|
my %names;
|
||||||
|
|
||||||
$files =~ s/\s+/ /g;
|
$files =~ s/\s+/ /g;
|
||||||
my $cmd = "cd $root && grep -n -P '(FIX"."ME|BO"."ZO)' $files | sort";
|
my @batch;
|
||||||
my $grep = `$cmd`;
|
my $n = 0;
|
||||||
print "$grep\n";
|
foreach my $file (split /\s+/, $files) {
|
||||||
if ($grep ne "") {
|
$batch[$n] .= $file . " ";
|
||||||
my %names;
|
++$n if (length($batch[$n]) > 10000);
|
||||||
foreach my $line (split /\n/, $grep) {
|
}
|
||||||
$names{$1} = 1 if $line =~ /^([^:]+)/;
|
|
||||||
|
foreach my $bfiles (@batch) {
|
||||||
|
my $cmd = "cd $root && grep -n -P '(FIX"."ME|BO"."ZO)' $bfiles | sort";
|
||||||
|
my $grep = `$cmd`;
|
||||||
|
if ($grep ne "") {
|
||||||
|
print "$grep\n";
|
||||||
|
foreach my $line (split /\n/, $grep) {
|
||||||
|
print "L $line\n";
|
||||||
|
$names{$1} = 1 if $line =~ /^([^:]+)/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (scalar(%names) >= 1) {
|
||||||
error("Files with FIX"."MEs: ",join(' ',sort keys %names));
|
error("Files with FIX"."MEs: ",join(' ',sort keys %names));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue