source: mod_gnutls/debian/patches/0008-Wait-for-OCSP-server-to-become-available.patch @ f93bd8d

debian/masterdebian/stretch-backports
Last change on this file since f93bd8d was f93bd8d, checked in by Thomas Klute <thomas2.klute@…>, 3 years ago

Wait for OCSP server during tests (another possible timing issue)

  • Property mode set to 100644
File size: 843 bytes
  • test/runtests

    From: Thomas Klute <thomas2.klute@uni-dortmund.de>
    Date: Tue, 28 Feb 2017 21:01:17 +0100
    Subject: Wait for OCSP server to become available
    
    ---
     test/runtests | 7 ++++++-
     1 file changed, 6 insertions(+), 1 deletion(-)
    
    diff --git a/test/runtests b/test/runtests
    index c1ff135..e7b10ed 100755
    a b if [ -n "${CHECK_OCSP_SERVER}" ]; then 
    198198        store_ocsp="--outfile ${OCSP_RESPONSE_FILE}"
    199199    fi
    200200    echo "---- Testing OCSP server ----"
    201     ocsptool --ask --nonce --load-issuer authority/x509.pem --load-cert server/x509.pem ${store_ocsp}
     201    waited=0
     202    until ocsptool --ask --nonce --load-issuer authority/x509.pem --load-cert server/x509.pem ${store_ocsp} \
     203            || [ ${waited} -ge 20 ]; do
     204        sleep 1
     205        waited=$((${waited} + 1))
     206    done
    202207    echo "---- OCSP test done ----"
    203208fi
    204209
Note: See TracBrowser for help on using the repository browser.