diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2010-08-03 13:57:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2010-08-03 13:57:08 +0200 |
commit | 3d88f65fb2ff3275bac3eabd124d385a1ed346b2 (patch) | |
tree | ec90169cf9f659e813747fffee188e837600a94c | |
parent | 3adc2470f9893488ac4092fdb6d33e865fba6930 (diff) |
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
-rwxr-xr-x | skype/t/livetest-bitlbee.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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 |