From bde085f411acfc236fc06f074ffb7ccfe4f836b3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 31 Oct 2012 17:02:35 +1100 Subject: test: add --disable-integrity switch. The integrity tests are very slow and aren't always needed. So make them optional. Signed-off-by: NeilBrown --- tests/01r5integ | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/01r5integ') 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 -- cgit v1.2.3