diff options
author | NeilBrown <neilb@suse.de> | 2012-10-31 17:02:35 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-11-20 12:08:03 +1100 |
commit | bde085f411acfc236fc06f074ffb7ccfe4f836b3 (patch) | |
tree | 86b91e3aa7a11e68746c873c407bac2aa7c2d87b /tests/01raid6integ | |
parent | cb8f6859d1f0c18bdac10353e45eb14825b24cd2 (diff) |
test: add --disable-integrity switch.
The integrity tests are very slow and aren't always needed.
So make them optional.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/01raid6integ')
-rw-r--r-- | tests/01raid6integ | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/01raid6integ b/tests/01raid6integ index 7123e2b8..d4ef2fd8 100644 --- a/tests/01raid6integ +++ b/tests/01raid6integ @@ -3,6 +3,11 @@ # Create a 5 disk raid6, dump some data to it, then # sha1sum it with different pairs of devices failed +if [ "$INTEGRITY" != "yes" ]; then + echo -ne 'skipping... ' + exit 0 +fi + layouts='ls rs la ra' lv=`uname -r` if expr $lv '>=' 2.6.30 > /dev/null |