]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/func.sh
Add one sanity check for missing device
[thirdparty/mdadm.git] / tests / func.sh
index 40c6026af6fcd48be2a22215b9eb4f599f9b1aac..af08b60f2a5ec2ebb8fb10252d546cee286708b3 100644 (file)
@@ -219,6 +219,10 @@ do_setup() {
 # check various things
 check() {
        case $1 in
+       opposite_result )
+               if [ $? -eq 0 ]; then
+                       die "This command shouldn't run successfully"
+               fi
        spares )
                spares=$(tr '] ' '\012\012' < /proc/mdstat | grep -c '(S)' || exit 0)
                [ $spares -ne $2 ] &&