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
RevLine 
[f93bd8d]1From: Thomas Klute <thomas2.klute@uni-dortmund.de>
2Date: Tue, 28 Feb 2017 21:01:17 +0100
3Subject: Wait for OCSP server to become available
4
5---
6 test/runtests | 7 ++++++-
7 1 file changed, 6 insertions(+), 1 deletion(-)
8
9diff --git a/test/runtests b/test/runtests
10index c1ff135..e7b10ed 100755
11--- a/test/runtests
12+++ b/test/runtests
13@@ -198,7 +198,12 @@ if [ -n "${CHECK_OCSP_SERVER}" ]; then
14        store_ocsp="--outfile ${OCSP_RESPONSE_FILE}"
15     fi
16     echo "---- Testing OCSP server ----"
17-    ocsptool --ask --nonce --load-issuer authority/x509.pem --load-cert server/x509.pem ${store_ocsp}
18+    waited=0
19+    until ocsptool --ask --nonce --load-issuer authority/x509.pem --load-cert server/x509.pem ${store_ocsp} \
20+           || [ ${waited} -ge 20 ]; do
21+       sleep 1
22+       waited=$((${waited} + 1))
23+    done
24     echo "---- OCSP test done ----"
25 fi
26 
Note: See TracBrowser for help on using the repository browser.