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:
Pino Toscano 2020-08-26 12:44:56 +02:00 committed by Cole Robinson
parent f6c2e75084
commit 7b8ea00361
3 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
Mageia 5 Official-x86_64-Download 20180807 23:39

View File

@ -130,6 +130,7 @@ def test_suse():
def test_mageia():
_test("mageia/5", "mageia5", initrd="all.rdz")
_test("mageia/8", initrd="all.rdz")

View File

@ -796,9 +796,9 @@ class _MageiaDistro(_DistroTree):
if not content:
return False
m = re.match("^Mageia (\d+) .*", content)
m = re.match(r"^Mageia (\d+) .*", content)
if not m:
return False
return False # pragma: no cover
cache.mageia_version = m.group(1)