Skip to contentSkip to conversation

master - test: for issue fixed in previous commit 2f7f6932dcd450ba75fe590aba8c09838d2618dc

PATCH Peter Rajnoha 1 participant 1 message Oct 27, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7049eeeb839b59314d07c0bac250c89cf8ac78f8
Commit:        7049eeeb839b59314d07c0bac250c89cf8ac78f8
Parent:        2f7f6932dcd450ba75fe590aba8c09838d2618dc
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Mon Oct 27 11:53:01 2014 +0100
Committer:     Peter Rajnoha <[email protected]>
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(-)
test/shell/report-select.sh +5 -0
index 11a4efd..70e5366 100644
@@ -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"