X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=tests%2Fcommon.sh;h=ff457457c3dfee76eadead61a7a7d3b536e34a92;hp=36dda8ed0dd77abba19eab35c611cd1bbd02c564;hb=e70b5abf4baa2a8780ed26d026a8aae1c241ebc4;hpb=3b4f4a15dc1ce69b65dc2c09d8743f7ed30662e4 diff --git a/tests/common.sh b/tests/common.sh index 36dda8e..ff45745 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -48,7 +48,11 @@ tlsproxy_setup() { "$srcdir/../src/tlsproxy-setup" >/dev/null 2>&1 } tlsproxy_add() { - "$srcdir/../src/tlsproxy-add" "$1" "$srcdir/$2" >/dev/null 2>&1 + # `make distcheck` marks the source PEM-file as read-only which is copied + # over when using `cp`. This causes a check failure when tlsproxy_add() is + # called again with the same hostname. Instead use redirection which + # doesn't use `cp`. + "$srcdir/../src/tlsproxy-add" "$1" < "$srcdir/$2" >/dev/null 2>&1 } tlsproxy() { ../src/tlsproxy -d2 "$@" >tlsproxy-log 2>&1 &