diff --git a/lvm-debug b/lvm-debug new file mode 100644 index 00000000000..92cd7077118 --- /dev/null +++ b/lvm-debug @@ -0,0 +1,7 @@ +#! /bin/bash + +logger -- RUN: $0 "$@" +( exec -a "$0" /usr/sbin/lvm.orig "$@" ) +res=$? +logger -- DONE: $0 "$@" == $res +exit $res diff --git a/test/verify/check-storage-lvm2 b/test/verify/check-storage-lvm2 index 5ef29539095..673d9de3481 100755 --- a/test/verify/check-storage-lvm2 +++ b/test/verify/check-storage-lvm2 @@ -453,6 +453,11 @@ class TestStorageLvm2(storagelib.StorageCase): def testRaidRepair(self): b = self.browser + m = self.machine + m.execute("mv /usr/sbin/lvm /usr/sbin/lvm.orig") + m.upload(["../lvm-debug"], "/usr/sbin/lvm") + m.execute("chmod a+x /usr/sbin/lvm") + self.skip_if_no_layouts() self.login_and_go("/storage")