-if ! [ "`ssh -o'BatchMode yes' localhost echo yes 2>/dev/null`" = "yes" ]; then
- echo "Skipping SSH tests because ssh conection to localhost not authorised"
- exit 77
+if ! type ssh >/dev/null ; then
+ test_skipped "Skipping SSH tests because ssh is not in the path"
+fi
+
+if ! [ "`ssh -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
+ test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"