[lvm-devel] master - test: for issue fixed in previous commit 2f7f6932dcd450ba75fe590aba8c09838d2618dc

Peter Rajnoha prajnoha at fedoraproject.org
Mon Oct 27 10:53:36 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7049eeeb839b59314d07c0bac250c89cf8ac78f8
Commit:        7049eeeb839b59314d07c0bac250c89cf8ac78f8
Parent:        2f7f6932dcd450ba75fe590aba8c09838d2618dc
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Mon Oct 27 11:53:01 2014 +0100
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Mon Oct 27 11:53:01 2014 +0100

test: for issue fixed in previous commit 2f7f6932dcd450ba75fe590aba8c09838d2618dc

---
 test/shell/report-select.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/shell/report-select.sh b/test/shell/report-select.sh
index 11a4efd..70e5366 100644
--- a/test/shell/report-select.sh
+++ b/test/shell/report-select.sh
@@ -183,6 +183,11 @@ lvs_sel 'name="vol1"' "vol1"
 # check reserved values are accepted for certain fields as well as usual values
 vgs_sel 'vg_mda_copies=unmanaged' "$vg2 $vg3"
 vgs_sel 'vg_mda_copies=2' "$vg1"
+# also, we must match only vg1, not including vg2 and vg3
+# when comparing ranges - unamanged is mapped onto 2^64 - 1 internally,
+# so we need to skip this internal value if it matches with selection criteria!
+vgs_sel 'vg_mda_copies>=2' "$vg1"
+not vgs_sel 'vg_mda_copies=18446744073709551615'
 
 lvs_sel 'lv_read_ahead=auto' "vol1 vol2 orig snap"
 lvs_sel 'lv_read_ahead=256k' "abc xyz"




More information about the lvm-devel mailing list