aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnutls/tests-certtool.patch
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-02-06 21:44:05 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-26 14:21:38 +0100
commitc7c7b0d49f863676ebca50afac0bb963aa24075c (patch)
treee9faf7b0ac2f6914ef19ac650ab6fd1138f7bc0e /main/gnutls/tests-certtool.patch
parent4e6f1904e1577829bdd5d83a43b197ff7944e3bd (diff)
downloadaports-c7c7b0d49f863676ebca50afac0bb963aa24075c.tar.bz2
aports-c7c7b0d49f863676ebca50afac0bb963aa24075c.tar.xz
main/gnutls: Enable tests again
Diffstat (limited to 'main/gnutls/tests-certtool.patch')
-rw-r--r--main/gnutls/tests-certtool.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/gnutls/tests-certtool.patch b/main/gnutls/tests-certtool.patch
new file mode 100644
index 0000000000..3c6a9a1885
--- /dev/null
+++ b/main/gnutls/tests-certtool.patch
@@ -0,0 +1,24 @@
+I think this tests is simply wrong.
+When a PIN is given, the program should run in batch mode.
+So the question for "Enter password" should _not_ be present.
+
+--- a/tests/cert-tests/certtool 2019-02-07 07:33:45.960887338 +0000
++++ b/tests/cert-tests/certtool 2019-02-07 07:36:14.550955051 +0000
+@@ -49,7 +49,7 @@
+
+ #check whether password is being honoured
+ #some CI runners need GNUTLS_PIN (GNUTLS_PIN=${PASS})
+- ${SETSID} "${CERTTOOL}" --generate-self-signed --load-privkey ${TMPFILE1} --template ${srcdir}/templates/template-test.tmpl --ask-pass >${TMPFILE2} 2>&1 <<EOF
++ GNUTLS_PIN=${PASS} ${SETSID} "${CERTTOOL}" --generate-self-signed --load-privkey ${TMPFILE1} --template ${srcdir}/templates/template-test.tmpl --ask-pass >${TMPFILE2} 2>&1 <<EOF
+ $PASS
+ EOF
+ if test $? != 0;then
+@@ -59,7 +59,7 @@
+ fi
+
+ grep "Enter password" ${TMPFILE2} >/dev/null 2>&1
+- if test $? != 0;then
++ if test $? != 1; then
+ cat ${TMPFILE2}
+ echo "No password was asked"
+ exit 1