tests/image: remove the hack for fedora-30

Previously we had only tests for Fedora 30, therefore I added a hack to treat
every Fedora as Fedora 30, so the tests would run. Now, we have tests for
multiple Fedora versions, therefore the hack is no longer needed.
This commit is contained in:
Ondřej Budai 2020-03-17 11:16:01 +01:00
parent acfb461aa5
commit 3cb2a5f930

View file

@ -319,11 +319,6 @@ func runTests(t *testing.T, cases []string, d string) {
hostDistroName, err := distro.GetHostDistroName()
require.Nil(t, err)
// TODO: forge distro name for now
if strings.HasPrefix(hostDistroName, "fedora") {
hostDistroName = "fedora-30"
}
if testcase.ComposeRequest.Distro != hostDistroName {
t.Skipf("the required distro is %s, the host distro is %s", testcase.ComposeRequest.Distro, hostDistroName)
}