mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-18 06:03:58 +03:00
tests: add Mageia 5 detection test
Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
f6c2e75084
commit
7b8ea00361
1
tests/data/urldetect/mageia/5/VERSION
Normal file
1
tests/data/urldetect/mageia/5/VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
Mageia 5 Official-x86_64-Download 20180807 23:39
|
@ -130,6 +130,7 @@ def test_suse():
|
|||||||
|
|
||||||
|
|
||||||
def test_mageia():
|
def test_mageia():
|
||||||
|
_test("mageia/5", "mageia5", initrd="all.rdz")
|
||||||
_test("mageia/8", initrd="all.rdz")
|
_test("mageia/8", initrd="all.rdz")
|
||||||
|
|
||||||
|
|
||||||
|
@ -796,9 +796,9 @@ class _MageiaDistro(_DistroTree):
|
|||||||
if not content:
|
if not content:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
m = re.match("^Mageia (\d+) .*", content)
|
m = re.match(r"^Mageia (\d+) .*", content)
|
||||||
if not m:
|
if not m:
|
||||||
return False
|
return False # pragma: no cover
|
||||||
|
|
||||||
cache.mageia_version = m.group(1)
|
cache.mageia_version = m.group(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user