Lines Matching refs:fail
24 cat << EOF > ${BATCH}.fail.1
28 # The next command should fail
32 cat << EOF > ${BATCH}.fail.2
33 # The next command should fail
39 || fail "good commands failed"
42 ${SFTP} -b ${BATCH}.fail.1 -D ${SFTPSERVER} >/dev/null 2>&1 \
43 && fail "bad commands succeeded"
47 || fail "comments & blanks failed"
50 ${SFTP} -b ${BATCH}.fail.2 -D ${SFTPSERVER} >/dev/null 2>&1 \
51 && fail "junk command succeeded"