summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/func.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/func.sh b/tests/func.sh
index 3958090..a6995f1 100644
--- a/tests/func.sh
+++ b/tests/func.sh
@@ -88,6 +88,13 @@ cleanup() {
esac
}
+do_clean()
+{
+ mdadm -Ss > /dev/null
+ mdadm --zero $devlist 2> /dev/null
+ dmesg -c > /dev/null
+}
+
check_env() {
user=$(id -un)
[ "X$user" != "Xroot" ] && {
@@ -141,7 +148,6 @@ do_setup() {
check_env
[ -d $logdir ] || mkdir -p $logdir
- dmesg -c > /dev/null
devlist=
if [ "$DEVTYPE" == "loop" ]