From 3cea1f27cf8bfe0ccfbabb5c3378e4ea03035a27 Mon Sep 17 00:00:00 2001 From: Jiri Kortus Date: Wed, 6 May 2020 18:06:57 +0200 Subject: [PATCH] Fix paths in TestDistro_Manifest It turned out the paths contained more ../s than appropriate. Refs: #442 --- internal/distro/distro_test.go | 2 +- internal/distro/fedora30/distro_test.go | 2 +- internal/distro/fedora31/distro_test.go | 2 +- internal/distro/fedora32/distro_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/distro/distro_test.go b/internal/distro/distro_test.go index 564f6e804..baa09525e 100644 --- a/internal/distro/distro_test.go +++ b/internal/distro/distro_test.go @@ -18,7 +18,7 @@ import ( func TestDistro_Manifest(t *testing.T) { distro_test_common.TestDistro_Manifest( t, - "../../../test/cases/", + "../../test/cases/", "*", fedora30.New(), fedora31.New(), fedora32.New(), rhel81.New(), rhel82.New(), rhel83.New(), ) diff --git a/internal/distro/fedora30/distro_test.go b/internal/distro/fedora30/distro_test.go index 4cfd3b9a7..25b5a210c 100644 --- a/internal/distro/fedora30/distro_test.go +++ b/internal/distro/fedora30/distro_test.go @@ -318,7 +318,7 @@ func TestImageType_BasePackages(t *testing.T) { } func TestDistro_Manifest(t *testing.T) { - distro_test_common.TestDistro_Manifest(t, "../../../../test/cases/", "f30*", fedora30.New()) + distro_test_common.TestDistro_Manifest(t, "../../../test/cases/", "fedora_30*", fedora30.New()) } func TestFedora30_ListArches(t *testing.T) { diff --git a/internal/distro/fedora31/distro_test.go b/internal/distro/fedora31/distro_test.go index f8976c258..068f1881a 100644 --- a/internal/distro/fedora31/distro_test.go +++ b/internal/distro/fedora31/distro_test.go @@ -274,7 +274,7 @@ func TestImageType_BasePackages(t *testing.T) { } func TestDistro_Manifest(t *testing.T) { - distro_test_common.TestDistro_Manifest(t, "../../../../test/cases/", "f31*", fedora31.New()) + distro_test_common.TestDistro_Manifest(t, "../../../test/cases/", "fedora_31*", fedora31.New()) } func TestFedora31_ListArches(t *testing.T) { diff --git a/internal/distro/fedora32/distro_test.go b/internal/distro/fedora32/distro_test.go index e7d83f93c..53ecef084 100644 --- a/internal/distro/fedora32/distro_test.go +++ b/internal/distro/fedora32/distro_test.go @@ -318,7 +318,7 @@ func TestImageType_BasePackages(t *testing.T) { } func TestDistro_Manifest(t *testing.T) { - distro_test_common.TestDistro_Manifest(t, "../../../../test/cases/", "f30*", fedora32.New()) + distro_test_common.TestDistro_Manifest(t, "../../../test/cases/", "fedora_32*", fedora32.New()) } func TestFedora32_ListArches(t *testing.T) {