Lines Matching defs:fail
32 function fail
79 [[ $(id -u) = "0" ]] && fail "This script must not be run as root."
82 [[ $? -eq 0 ]] || fail "User must be able to sudo without a password."
100 [[ -n $PATHDIR ]] || fail "PATHDIR wasn't correctly set"
103 [[ ! -e $PATHDIR/$i ]] || fail "$i already exists"
104 ln -s $dir/$i $PATHDIR/$i || fail "Couldn't link $i"
114 chmod 755 $PATHDIR || fail "Couldn't chmod $PATHDIR"
136 [[ -f $runfile ]] || fail "Cannot read file: $runfile"
149 fail "\$DISKS not set in env, and -a not specified."
151 verify_disks || fail "Couldn't verify all the disks in \$DISKS"
166 [[ -z $runfile ]] && fail "Couldn't determine distro"
171 [[ $num_disks -lt 3 ]] && fail "Not enough disks to run ZFS Test Suite"
177 rm -rf $PATHDIR || fail "Couldn't remove $PATHDIR"