summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-12-09 00:59:18 +0100
committerDan Williams <dan.j.williams@intel.com>2008-12-09 00:59:18 +0100
commit2952742d3252fc8817c230336b07644e9238e4c2 (patch)
tree13fcf56752044f537c046fb527be13605da814a4 /test
parenttest: enable per-test custom environment setup/teardown (diff)
downloadmdadm-2952742d3252fc8817c230336b07644e9238e4c2.tar.xz
mdadm-2952742d3252fc8817c230336b07644e9238e4c2.zip
workaround a hald interaction and quiet cleanup
The 'udevadm settle' call appears to resolve: mdadm: failed to stop array /dev/md127: Device or resource busy Perhaps a running process, mounted filesystem or active volume group? Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test3
1 files changed, 2 insertions, 1 deletions
diff --git a/test b/test
index f68a51d5..b3e49496 100644
--- a/test
+++ b/test
@@ -40,7 +40,8 @@ mdsize11=19992
mdsize12=19988
cleanup() {
- $mdadm -Ss
+ udevadm settle
+ $mdadm -Ssq
for d in 0 1 2 3 4 5 6 7
do
losetup -d /dev/loop$d ; # rm -f $targetdir/mdtest$d