After `set -e` is called, the shell will exit immediately if a simple
command exits with a non-zero status, but the shell will not exit if the
command is part of a `&&` list.
So calling `test_nfsv3 && test_nfsv4` will not exit on failures in
`test_nfsv3`. Call those functions separately and rely on `set -e`.
return 1
fi
- test_nfsv3 \
- && test_nfsv4
-
- ret=$?
+ test_nfsv3
+ test_nfsv4
if [[ -s $TESTDIR/server.pid ]]; then
kill -TERM "$(cat "$TESTDIR"/server.pid)"
rm -f -- "$TESTDIR"/server.pid
fi
-
- return $ret
}
test_setup() {