commit 929aa3281baed3fe26ea8e4a25fa6581ad2b4587
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Fri Jan 14 16:57:03 2022 +0100

    autotest: don't die on failure to read state file
    
    this can happen as part of a "regular" test failure.

 src/run-tests.pl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/run-tests.pl b/src/run-tests.pl
index d8d8350b..2b695e2d 100755
--- a/src/run-tests.pl
+++ b/src/run-tests.pl
@@ -559,7 +559,10 @@ sub ckstate($$)
        $hdr{'MaxPulledUid'} = $$t[0];
        $hdr{'MaxPushedUid'} = $$t[2];
        $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>);
        close FILE;
        OUTER: while (1) {


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to