diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2007-12-12 05:04:04 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2007-12-12 05:04:04 +0000 |
commit | 7d6a02d621e2c4a5834c8a691f726cc4731be772 (patch) | |
tree | b22d5f8ca11342251c24bf779b212b2b7bbb2c7d /regress | |
parent | f7124ff7ff0ecddc526f55e537660e9ed319dbee (diff) |
unbreak lls command and add a regress test that would have caught the
breakage; spotted by mouring@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ssh/sftp-cmds.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/regress/usr.bin/ssh/sftp-cmds.sh b/regress/usr.bin/ssh/sftp-cmds.sh index 9414573e60c..152553799a6 100644 --- a/regress/usr.bin/ssh/sftp-cmds.sh +++ b/regress/usr.bin/ssh/sftp-cmds.sh @@ -1,4 +1,4 @@ -# $OpenBSD: sftp-cmds.sh,v 1.8 2007/10/24 03:32:35 djm Exp $ +# $OpenBSD: sftp-cmds.sh,v 1.9 2007/12/12 05:04:03 djm Exp $ # Placed in the Public Domain. # XXX - TODO: @@ -24,9 +24,12 @@ rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* mkdir ${COPY}.dd verbose "$tid: lls" -echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ - || fail "lls failed" -# XXX always successful +echo "cd ${OBJ}\nlls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ + grep -q copy.dd || fail "lls failed" + +verbose "$tid: lls w/path" +echo "lls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \ + grep -q copy.dd || fail "lls w/path failed" verbose "$tid: ls" echo "ls ${OBJ}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ |