From e9ea3358ce0e83ab5590a0e3c7c0c32c699f1016 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 13 Sep 2023 11:48:46 -0700 Subject: [PATCH] test_distro: Make NewTestDistro public --- pkg/distro/test_distro/distro.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/distro/test_distro/distro.go b/pkg/distro/test_distro/distro.go index 8616662fe7..27b4366b8c 100644 --- a/pkg/distro/test_distro/distro.go +++ b/pkg/distro/test_distro/distro.go @@ -294,13 +294,13 @@ func (t *TestImageType) Manifest(b *blueprint.Blueprint, options distro.ImageOpt return m, nil, nil } -// newTestDistro returns a new instance of TestDistro with the +// NewTestDistro returns a new instance of TestDistro with the // given name and modulePlatformID. // // It contains two architectures "test_arch" and "test_arch2". // "test_arch" contains one image type "test_type". // "test_arch2" contains two image types "test_type" and "test_type2". -func newTestDistro(name, modulePlatformID, releasever string) *TestDistro { +func NewTestDistro(name, modulePlatformID, releasever string) *TestDistro { td := TestDistro{ name: name, releasever: releasever, @@ -375,7 +375,7 @@ func newTestDistro(name, modulePlatformID, releasever string) *TestDistro { // New returns new instance of TestDistro named "test-distro". func New() *TestDistro { - return newTestDistro(TestDistroName, TestDistroModulePlatformID, TestDistroReleasever) + return NewTestDistro(TestDistroName, TestDistroModulePlatformID, TestDistroReleasever) } func NewRegistry() *distroregistry.Registry {