- Timestamp:
- Mar 14, 2023, 3:08:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/check_md5s_dateobs.pl
r42404 r42411 18 18 my @instlist = glob ("$dateword/*.inst.txt"); 19 19 my @md5slist = glob ("$dateword/*.md5s.txt"); 20 21 my $Nfail = 0; 20 22 21 23 foreach my $instfile (@instlist) { … … 39 41 40 42 if ($md5match eq "NONE") { 41 print STDERR "missing md5sum file for $instfile\n"; 43 print STDOUT "missing md5sum file for $instfile\n"; 44 $Nfail ++; 42 45 next; 43 46 } … … 57 60 my $N2 = @instdata; 58 61 if ($N1 != $N2) { 59 print STDERR "inconsistent number of lines in $md5match : $N1 vs $N2\n"; 62 print STDOUT "inconsistent number of lines in $md5match : $N1 vs $N2\n"; 63 $Nfail ++; 60 64 next; 61 65 } … … 76 80 77 81 if ($md5tru ne $md5obs) { 78 print STDERR "FAIL: $inst $state $md5tru $md5obs\n"; 82 print STDOUT "FAIL: $inst $state $md5tru $md5obs\n"; 83 $Nfail ++; 79 84 } 80 85 } 86 } 87 88 if ($Nfail) { 89 print STDOUT "ERROR: $Nfail errors\n"; 90 exit 1; 91 } else { 92 print STDOUT "SUCCESS: $Nfail errors\n"; 93 exit 0; 81 94 } 82 95
Note:
See TracChangeset
for help on using the changeset viewer.
