Skip to content

Commit

Permalink
update the acceptance test report output template file
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Cooper <cooper.daniel45@gmail.com>
  • Loading branch information
danielcooperxyz committed Aug 21, 2020
1 parent 112767d commit 6f55535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions acceptance/testdata/pack_fixtures/report_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ Pack:

Default Lifecycle Version: 0.9.1

Supported Platform APIs: 0.3, 0.4

Config:
default-builder-image = "{{ .DefaultBuilder }}"
4 changes: 2 additions & 2 deletions internal/commands/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ Config:
platformAPIs := ""
for _, api := range build.SupportedPlatformAPIVersions {
if len(platformAPIs) > 0 {
platformAPIs += ","
platformAPIs += ", "
}
platformAPIs = fmt.Sprintf("%s %s", platformAPIs, api)
platformAPIs = fmt.Sprintf("%s%s", platformAPIs, api)
}

return tpl.Execute(writer, map[string]string{
Expand Down

0 comments on commit 6f55535

Please sign in to comment.