1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

lvmdbustest.py: Remove '-' from tag ch set

This commit is contained in:
Tony Asleson 2016-08-25 18:41:53 -05:00
parent 0985b2d0d4
commit 9aed18a571

View File

@ -1107,10 +1107,13 @@ class TestDbusService(unittest.TestCase):
vg_proxy.Vg.LvCreateLinear(r + rs(8, '_lv'), vg_proxy.Vg.LvCreateLinear(r + rs(8, '_lv'),
mib(4), False, -1, {}) mib(4), False, -1, {})
_ALLOWABLE_TAG_CH = string.ascii_letters + string.digits + "._-+/=!:&#" # Wait until BZ https://bugzilla.redhat.com/show_bug.cgi?id=1370002
# is corrected before we add '-' in the allowable character set
#_ALLOWABLE_TAG_CH = string.ascii_letters + string.digits + "._-+/=!:&#"
_ALLOWABLE_TAG_CH = string.ascii_letters + string.digits + "._+/=!:&#"
def _invalid_tag_characters(self): def _invalid_tag_characters(self):
bad_tag_ch_set = set(string.printable) - set(self._ALLOWABLE_TAG_CH) bad_tag_ch_set = set(string.printable) - set(self._ALLOWABLE_TAG_CH + '-')
return ''.join(bad_tag_ch_set) return ''.join(bad_tag_ch_set)
def test_invalid_tags(self): def test_invalid_tags(self):