]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Move the TEST_SSH_PORT section down a bit.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 6 Apr 2021 23:59:15 +0000 (09:59 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 7 Apr 2021 07:02:51 +0000 (17:02 +1000)
This groups the portable-specific changes together and makes it a
little more likely that patches will apply cleanly.

regress/test-exec.sh

index 4d04e04b1978043709df6ed5c186e41d3c820902..f6d7f38a42108ac7ae8956c5d10c10702e38dfce 100644 (file)
@@ -17,12 +17,6 @@ CYGWIN*)
        ;;
 esac
 
-if [ ! -z "$TEST_SSH_PORT" ]; then
-       PORT="$TEST_SSH_PORT"
-else
-       PORT=4242
-fi
-
 # If configure tells us to use a different egrep, create a wrapper function
 # to call it.  This means we don't need to change all the tests that depend
 # on a good implementation.
@@ -47,6 +41,12 @@ if test -z "$LOGNAME"; then
        export LOGNAME
 fi
 
+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'