Skip to content

Commit

Permalink
test_distro: Make NewTestDistro public
Browse files Browse the repository at this point in the history
  • Loading branch information
bcl authored and achilleas-k committed Sep 15, 2023
1 parent 9a445e6 commit e9ea335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/distro/test_distro/distro.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e9ea335

Please sign in to comment.