tests: tweak mageia detection

- create a versioned directory for the current VERSION file, fixing the
  typo in the distro name
- move the test to an own function

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:54 +02:00 committed by Cole Robinson
parent 1a3a89d949
commit f98daef031
2 changed files with 4 additions and 1 deletions

View File

@ -129,9 +129,12 @@ def test_suse():
kernel="linux64")
def test_mageia():
_test("mageia/8", initrd="all.rdz")
def test_misc():
_test("generic")
_test("magaeia", initrd="all.rdz")
with pytest.raises(ValueError) as e:
_test("empty")