NeilBrown: test: return correct error status for mdadm

Martin F. Krafft madduck at alioth.debian.org
Thu May 7 12:11:33 UTC 2009


Module: mdadm
Branch: debian/experimental
Commit: dd4ae23ad0f65ab28b812a75ef3a9923c70f78a2
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=dd4ae23ad0f65ab28b812a75ef3a9923c70f78a2

Author: NeilBrown <neilb at suse.de>
Date:   Wed Apr  1 13:50:19 2009 +1100

test: return correct error status for mdadm

mdadm's return status is being hidden by the 'test' script so
individual tests cannot see it.

---

 test |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test b/test
index 1cd341f..3f4c5d4 100644
--- a/test
+++ b/test
@@ -86,7 +86,9 @@ mdadm() {
        *-C* ) $mdadm 2> $targetdir/stderr --quiet "$@" --auto=yes;;
         * )   $mdadm 2> $targetdir/stderr --quiet "$@"
     esac
+    rv=$?
     cat >&2 $targetdir/stderr
+    return $rv
 }
 
 # check various things




More information about the pkg-mdadm-commits mailing list