From 4e6a6b592d12f122b3bf6e3267a4beebd682da3a Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 6 Nov 2013 15:09:01 +0100 Subject: [PATCH] do +e when we run tests.. --- selftest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selftest.sh b/selftest.sh index e33f626..011ab8c 100755 --- a/selftest.sh +++ b/selftest.sh @@ -45,6 +45,9 @@ sudo mv config-db.php /etc/yubico/ksm/ $dbrun 'insert into yubikeys (publicname,internalname,aeskey) values("idkfefrdhtru","609963eae7b5","c68c9df8cbfe7d2f994cb904046c7218");' sudo /etc/init.d/apache2 restart + +set +e + curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00" if [ $? != 0 ]; then tail /var/log/apache2/*