We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a789e6 commit 3e66a2cCopy full SHA for 3e66a2c
1 file changed
RelVal/scripts/comparepanda.pl
@@ -19,15 +19,22 @@
19
my ($end) = $_ =~ m|(/[^/]+/[^/]+$suff)$|;
20
my ($match) = grep { $_ =~ m/${end}$/ } @snd_files;
21
22
- if (compare($_, $match)) {
23
- say "$end is different!";
24
- `diff $_ $match`;
+ if ($match) {
+ if (compare($_, $match)) {
+ say "$end is different!";
25
+ `diff $_ $match`;
26
+ $bad_matches += 1;
27
+ }
28
29
+ else {
30
+ say "No file $snd_dir$end";
31
$bad_matches += 1;
32
}
33
34
35
if ($bad_matches) {
- die "$bad_matches files don't match...";
36
+ say "$bad_matches files don't match...";
37
+ exit 1;
38
39
40
say "All files match!";
0 commit comments