]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - test
Central calls to ioctl BLKGETSIZE
[thirdparty/mdadm.git] / test
diff --git a/test b/test
index f0a4388f592e5bdc0155abffd630d7c824b4c54b..a83b68e69d181f737f17696a5b79656c76c04403 100644 (file)
--- a/test
+++ b/test
@@ -65,6 +65,7 @@ fi
 
 # mdadm always adds --quiet, and we want to see any unexpected messages
 mdadm() {
+    rm -f $targetdir/stderr
     case $* in
        *-C* ) $mdadm 2> $targetdir/stderr --quiet "$@" --auto=yes;;
         * )   $mdadm 2> $targetdir/stderr --quiet "$@"
@@ -161,6 +162,7 @@ for script in tests/$prefix tests/$prefix*[^~]
 do
   if [ -f "$script" ]
   then
+   rm -f $targetdir/stderr
    # source script in a subshell, so it has access to our
    # namespace, but cannot change it.
    if ( set -ex ; . $script )  2> $targetdir/log