Browse Source

autotest: don't die on failure to read state file

this can happen as part of a "regular" test failure.
wip/maildir-path-under-inbox
Oswald Buddenhagen 3 years ago
parent
commit
929aa3281b
  1. 5
      src/run-tests.pl

5
src/run-tests.pl

@ -559,7 +559,10 @@ sub ckstate($$)
$hdr{'MaxPulledUid'} = $$t[0]; $hdr{'MaxPulledUid'} = $$t[0];
$hdr{'MaxPushedUid'} = $$t[2]; $hdr{'MaxPushedUid'} = $$t[2];
$hdr{'MaxExpiredFarUid'} = $$t[1] if ($$t[1] ne 0); $hdr{'MaxExpiredFarUid'} = $$t[1] if ($$t[1] ne 0);
open(FILE, "<", $fn) or die "Cannot read sync state $fn.\n"; if (!open(FILE, "<", $fn)) {
print STDERR "Cannot read sync state $fn.\n";
return 1;
}
chomp(my @ls = <FILE>); chomp(my @ls = <FILE>);
close FILE; close FILE;
OUTER: while (1) { OUTER: while (1) {

Loading…
Cancel
Save