summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-10 14:42:20 +1000
committerNeilBrown <neilb@suse.de>2015-07-10 14:42:20 +1000
commit439c196491a97963c24aebeae78cc82f5a6de745 (patch)
treea4b1a3a9bec7f4d26379c34fd4ed9c4518f6d165 /tests
parentbc6ccf969ec5f0d5399412ebda49335e5752f850 (diff)
downloadmdadm-439c196491a97963c24aebeae78cc82f5a6de745.tar.gz
tests: do not try to 'flushbufs' after stopping a array
If the array is stopped, there is nothing to flush, and blockdev can signal an error. Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/19raid6auto-repair2
-rw-r--r--tests/19raid6repair2
-rw-r--r--tests/19repair-does-not-destroy1
3 files changed, 1 insertions, 4 deletions
diff --git a/tests/19raid6auto-repair b/tests/19raid6auto-repair
index 23b14e4..7fb1c72 100644
--- a/tests/19raid6auto-repair
+++ b/tests/19raid6auto-repair
@@ -39,5 +39,3 @@ cmp -s -n $array_data_size_in_b $md0 /tmp/RandFile || { echo cmp failed ; exit 2
mdadm -S $md0
udevadm settle
-blockdev --flushbufs $md0 $devs; sync
-echo 3 > /proc/sys/vm/drop_caches
diff --git a/tests/19raid6repair b/tests/19raid6repair
index a1a91e7..1159bd3 100644
--- a/tests/19raid6repair
+++ b/tests/19raid6repair
@@ -42,6 +42,6 @@ for failure in "$dev3 3 3 2" "$dev3 3 2 3" "$dev3 3 2 1" "$dev3 3 2 0" "$dev4 3
mdadm -S $md0
udevadm settle
- blockdev --flushbufs $devs; sync
+ sync
echo 3 > /proc/sys/vm/drop_caches
done
diff --git a/tests/19repair-does-not-destroy b/tests/19repair-does-not-destroy
index 1d3b9b4..a92883f 100644
--- a/tests/19repair-does-not-destroy
+++ b/tests/19repair-does-not-destroy
@@ -26,4 +26,3 @@ cmp -s -n $array_data_size_in_b $md0 /tmp/RandFile || { echo should not mess up
mdadm -S $md0
udevadm settle
-blockdev --flushbufs $md0 $devs; sync