[lvm-devel] master - tests: minor update

Zdenek Kabelac zkabelac at fedoraproject.org
Wed Apr 20 22:35:54 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7ce486e881a96db24a1f46a99110b0eb7009b0de
Commit:        7ce486e881a96db24a1f46a99110b0eb7009b0de
Parent:        545b58542cec657af5125d16125732b424274982
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Wed Apr 20 23:21:03 2016 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Apr 21 00:34:01 2016 +0200

tests: minor update

---
 test/shell/pvmove-background.sh |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/shell/pvmove-background.sh b/test/shell/pvmove-background.sh
index 000de1c..26970d4 100644
--- a/test/shell/pvmove-background.sh
+++ b/test/shell/pvmove-background.sh
@@ -21,11 +21,15 @@ for mode in "--atomic" ""
 do
 lvcreate -aey -l1 -n $lv1 $vg "$dev1"
 
-lvs -o +devices | grep "$dev1"
+lvs -o +devices | tee out
+grep "$dev1" out
+
 LVM_TEST_TAG="kill_me_$PREFIX" pvmove $mode -i 1 -b "$dev1" "$dev2"
 sleep 5 # arbitrary...
-lvs -o +devices | not grep "pvmove"
-lvs -o +devices | grep "$dev2"
+lvs -o +devices | tee out
+not grep "pvmove" out
+lvs -o +devices | tee out
+grep "$dev2" out
 
 lvremove -ff $vg
 done




More information about the lvm-devel mailing list