X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=tests%2Ffunc.sh;h=af08b60f2a5ec2ebb8fb10252d546cee286708b3;hp=40c6026af6fcd48be2a22215b9eb4f599f9b1aac;hb=9c816fe2ad158b39695339f58ddc921c68453cb1;hpb=62f1aee7ada5e752bda0448b2003a64b31cad5af diff --git a/tests/func.sh b/tests/func.sh index 40c6026a..af08b60f 100644 --- a/tests/func.sh +++ b/tests/func.sh @@ -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 ] &&