From 3d88f65fb2ff3275bac3eabd124d385a1ed346b2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 3 Aug 2010 13:57:08 +0200 Subject: tests: don't generate new certs all the time if not needed this is a hack, looks like openssl-1.0 generates something which is not compatible with python-gnutls, let's reuse what we have for now --- skype/t/livetest-bitlbee.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skype/t/livetest-bitlbee.sh b/skype/t/livetest-bitlbee.sh index cf2450e2..3a418841 100755 --- a/skype/t/livetest-bitlbee.sh +++ b/skype/t/livetest-bitlbee.sh @@ -22,7 +22,12 @@ rm -rf etc mkdir etc cd etc cp ../../skyped.cnf . -yes ""|openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem -keyout skyped.key.pem 2> openssl.log +if [ ! -e ~/.skyped/skyped.cert.pem -o ! -e ~/.skyped/skyped.key.pem ]; then + yes ""|openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem -keyout skyped.key.pem 2> openssl.log +else + cp ~/.skyped/skyped.cert.pem . + cp ~/.skyped/skyped.key.pem . +fi cd .. echo "[skyped]" > skyped.conf echo "username = $TEST_SKYPE_ID" >> skyped.conf -- cgit v1.2.3