summaryrefslogtreecommitdiff
path: root/tests/01r5integ
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-31 17:02:35 +1100
committerNeilBrown <neilb@suse.de>2012-11-20 12:08:03 +1100
commitbde085f411acfc236fc06f074ffb7ccfe4f836b3 (patch)
tree86b91e3aa7a11e68746c873c407bac2aa7c2d87b /tests/01r5integ
parentcb8f6859d1f0c18bdac10353e45eb14825b24cd2 (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/01r5integ')
-rw-r--r--tests/01r5integ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/01r5integ b/tests/01r5integ
index 97a71f34..759acd7d 100644
--- a/tests/01r5integ
+++ b/tests/01r5integ
@@ -3,6 +3,11 @@
# Create a 4 disk raid5, create a filesystem and
# sha1sum it with each device failed
+if [ "$INTEGRITY" != "yes" ]; then
+ echo -ne 'skipping... '
+ exit 0
+fi
+
for layout in ls rs la ra
do
mdadm -CR $md0 -l5 --layout $layout -n4 $dev0 $dev1 $dev2 $dev3