summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh/test-exec.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2004-06-22 22:55:57 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2004-06-22 22:55:57 +0000
commit0f2f5aca8d409ac3c46c9d1f5efa1ef0a9f693f4 (patch)
tree6e9d607c59b89d6d5f2959758dc8a527d3a746be /regress/usr.bin/ssh/test-exec.sh
parentcd019f3d8285ec874db667574939d9d7eb232e9d (diff)
Allow setting of port for regress from TEST_SSH_PORT variable; ok markus@
Diffstat (limited to 'regress/usr.bin/ssh/test-exec.sh')
-rw-r--r--regress/usr.bin/ssh/test-exec.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh
index 18357a5fbe1..9d1b1734ed9 100644
--- a/regress/usr.bin/ssh/test-exec.sh
+++ b/regress/usr.bin/ssh/test-exec.sh
@@ -1,11 +1,16 @@
-# $OpenBSD: test-exec.sh,v 1.20 2004/06/22 22:45:52 dtucker Exp $
+# $OpenBSD: test-exec.sh,v 1.21 2004/06/22 22:55:56 dtucker Exp $
# Placed in the Public Domain.
-PORT=4242
USER=`id -un`
SUDO=
#SUDO=sudo
+if [ ! -z "$TEST_SSH_PORT" ]; then
+ PORT="$TEST_SSH_PORT"
+else
+ PORT=4242
+fi
+
OBJ=$1
if [ "x$OBJ" = "x" ]; then
echo '$OBJ not defined'