summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/key-options.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/key-options.sh b/regress/key-options.sh
index e03cae585..d680737c1 100644
--- a/regress/key-options.sh
+++ b/regress/key-options.sh
@@ -101,9 +101,10 @@ check_valid_before() {
101 sed "s/.*/$opts &/" $origkeys >$authkeys 101 sed "s/.*/$opts &/" $origkeys >$authkeys
102 verbose "key option expiry-time $which" 102 verbose "key option expiry-time $which"
103 ${SSH} -q -F $OBJ/ssh_proxy somehost true 103 ${SSH} -q -F $OBJ/ssh_proxy somehost true
104 r=$?
104 case "$expect" in 105 case "$expect" in
105 fail) test $? -eq 0 && fail "key option succeeded $which" ;; 106 fail) test $r -eq 0 && fail "key option succeeded $which" ;;
106 pass) test $? -ne 0 && fail "key option failed $which" ;; 107 pass) test $r -ne 0 && fail "key option failed $which" ;;
107 *) fatal "unknown expectation $expect" ;; 108 *) fatal "unknown expectation $expect" ;;
108 esac 109 esac
109} 110}