From 6f55535b885016e5929e360f577d661a7e9565e0 Mon Sep 17 00:00:00 2001 From: Daniel Cooper Date: Fri, 21 Aug 2020 14:44:31 +0100 Subject: [PATCH] update the acceptance test report output template file Signed-off-by: Daniel Cooper --- acceptance/testdata/pack_fixtures/report_output.txt | 2 ++ internal/commands/report.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/acceptance/testdata/pack_fixtures/report_output.txt b/acceptance/testdata/pack_fixtures/report_output.txt index 1b14e5f956..66cf032d80 100644 --- a/acceptance/testdata/pack_fixtures/report_output.txt +++ b/acceptance/testdata/pack_fixtures/report_output.txt @@ -4,5 +4,7 @@ Pack: Default Lifecycle Version: 0.9.1 +Supported Platform APIs: 0.3, 0.4 + Config: default-builder-image = "{{ .DefaultBuilder }}" diff --git a/internal/commands/report.go b/internal/commands/report.go index 350a3dca52..35ae678b2f 100644 --- a/internal/commands/report.go +++ b/internal/commands/report.go @@ -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{