]> andersk Git - openssh.git/commitdiff
- dtucker@cvs.openbsd.org 2004/06/17 05:51:59
authordtucker <dtucker>
Thu, 17 Jun 2004 06:27:43 +0000 (06:27 +0000)
committerdtucker <dtucker>
Thu, 17 Jun 2004 06:27:43 +0000 (06:27 +0000)
     [regress/multiplex.sh]
     Remove datafile between and after tests, kill sshd rather than wait;
     ok djm@

ChangeLog
regress/multiplex.sh

index 0f166173b214a6bf4d5c7982cec7cf8c017ef10f..4dc3cb42bfd9e458ab71c8aa6b37bc7bdafb60b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 20040617
  - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
    platforms), so test if diff understands it.  Pointed out by tim@, ok djm@
+ - (dtucker) OpenBSD CVS Sync regress/
+   - dtucker@cvs.openbsd.org 2004/06/17 05:51:59
+     [regress/multiplex.sh]
+     Remove datafile between and after tests, kill sshd rather than wait;
+     ok djm@
 
 20040616
  - (dtucker) [openbsd-compat/port-aix.c] Expand whitespace -> tabs. No
index 9940f15cb4accf0c7506196445d5b86e9c51f8a6..fb4927e6212a3f84705037f0933219bc51f22d84 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: multiplex.sh,v 1.2 2004/06/16 13:16:40 dtucker Exp $
+#      $OpenBSD: multiplex.sh,v 1.3 2004/06/17 05:51:59 dtucker Exp $
 #      Placed in the Public Domain.
 
 CTL=$OBJ/ctl-sock
@@ -10,11 +10,13 @@ start_sshd
 trace "start master, fork to background"
 ${SSH} -2 -MS$CTL -F $OBJ/ssh_config -f somehost sleep 60
 
+rm -f $OBJ/ls.copy
 trace "ssh transfer over multiplexed connection and check result"
 ${SSH} -S$CTL otherhost cat /bin/ls > $OBJ/ls.copy
 test -f $OBJ/ls.copy                   || fail "failed copy /bin/ls"
 cmp /bin/ls $OBJ/ls.copy               || fail "corrupted copy of /bin/ls"
 
+rm -f $OBJ/ls.copy
 trace "ssh transfer over multiplexed connection and check result"
 ${SSH} -S $CTL otherhost cat /bin/ls > $OBJ/ls.copy
 test -f $OBJ/ls.copy                   || fail "failed copy /bin/ls"
@@ -33,6 +35,8 @@ ${SCP} -oControlPath=$CTL otherhost:/bin/ls $OBJ/ls.copy >/dev/null 2>&1
 test -f $OBJ/ls.copy                   || fail "failed copy /bin/ls"
 cmp /bin/ls $OBJ/ls.copy               || fail "corrupted copy of /bin/ls"
 
+rm -f $OBJ/ls.copy
+
 for s in 0 1 4 5 44; do
        trace "exit status $s over multiplexed connection"
        verbose "test $tid: status $s"
@@ -52,4 +56,6 @@ for s in 0 1 4 5 44; do
        fi
 done
 
-sleep 30 # early close test sleeps 5 seconds per test
+# kill master, remove control socket.  ssh -MS will exit when sleep exits
+$SUDO kill `cat $PIDFILE`
+rm -f $CTL
This page took 0.04371 seconds and 5 git commands to generate.