@@ -69,7 +69,7 @@ func process() error {
6969 if * jsonOutFile != "" {
7070 jsonReport , errs := engflow .ConstructJSONReport (invocation , * serverName )
7171 for _ , err := range errs {
72- fmt .Printf ("error loading JSON test report: %+v" , err )
72+ fmt .Printf ("error loading JSON test report: %+v\n " , err )
7373 }
7474 jsonOut , err := json .Marshal (jsonReport )
7575 if err != nil {
@@ -80,11 +80,11 @@ func process() error {
8080 return err
8181 }
8282 } else {
83- fmt .Printf ("no -jsonoutfile; skipping constructing JSON test report" )
83+ fmt .Println ("no -jsonoutfile; skipping constructing JSON test report" )
8484 }
8585
8686 if githubApiToken == "" {
87- fmt .Printf ("no GITHUB_API_TOKEN; skipping reporting to GitHub" )
87+ fmt .Println ("no GITHUB_API_TOKEN; skipping reporting to GitHub" )
8888 return nil
8989 }
9090
@@ -98,12 +98,12 @@ func process() error {
9898 for _ , res := range results {
9999 var seenNew bool
100100 if res .Err != nil {
101- fmt .Printf ("got error downloading test XML for result %+v; got error %+v" , res , res .Err )
101+ fmt .Printf ("got error downloading test XML for result %+v; got error %+v\n " , res , res .Err )
102102 continue
103103 }
104104 var testXml bazelutil.TestSuites
105105 if err := xml .Unmarshal ([]byte (res .TestXml ), & testXml ); err != nil {
106- fmt .Printf ("could not parse test.xml: got error %+v" , err )
106+ fmt .Printf ("could not parse test.xml: got error %+v\n " , err )
107107 continue
108108 }
109109 for _ , suite := range testXml .Suites {
@@ -137,7 +137,7 @@ func process() error {
137137 GithubApiToken : githubApiToken ,
138138 ExtraParams : extraParamsSlice ,
139139 }), testXml ); err != nil {
140- fmt .Printf ("could not post to GitHub: got error %+v" , err )
140+ fmt .Printf ("could not post to GitHub: got error %+v\n " , err )
141141 }
142142 }
143143 }
@@ -165,7 +165,7 @@ func main() {
165165 os .Exit (1 )
166166 }
167167 if err := process (); err != nil {
168- fmt .Printf ("ERROR: %+v" , err )
168+ fmt .Printf ("ERROR: %+v\n " , err )
169169 os .Exit (1 )
170170 }
171171}
0 commit comments