diff --git a/cmd/testworkflow-toolkit/artifacts/handler.go b/cmd/testworkflow-toolkit/artifacts/handler.go index b1e1798053..4262b91b74 100644 --- a/cmd/testworkflow-toolkit/artifacts/handler.go +++ b/cmd/testworkflow-toolkit/artifacts/handler.go @@ -116,6 +116,7 @@ func (h *handler) Add(path string, file fs.File, stat fs.FileInfo) (err error) { fmt.Printf(ui.Red("%s: failed: %s"), uploadPath, err.Error()) } if h.postProcessor != nil { + fmt.Printf("Path sent to post processor: %s\n", ui.LightCyan(path)) err = h.postProcessor.Add(path) if err != nil { h.errors.Add(1) diff --git a/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go b/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go index f4b216ef23..d288a937f4 100644 --- a/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go +++ b/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go @@ -38,6 +38,7 @@ func (p *JUnitPostProcessor) Start() error { // Add checks if the file is a JUnit report and sends it to the cloud. func (p *JUnitPostProcessor) Add(path string) error { fmt.Printf("Checking file: %s\n", ui.LightCyan(path)) + fmt.Printf("Path prefix: %s\n", ui.LightCyan(p.pathPrefix)) uploadPath := path if p.pathPrefix != "" { uploadPath = filepath.Join(p.pathPrefix, uploadPath) diff --git a/cmd/testworkflow-toolkit/commands/artifacts.go b/cmd/testworkflow-toolkit/commands/artifacts.go index ff4a059f04..17c72529e6 100644 --- a/cmd/testworkflow-toolkit/commands/artifacts.go +++ b/cmd/testworkflow-toolkit/commands/artifacts.go @@ -114,6 +114,7 @@ func NewArtifactsCmd() *cobra.Command { defer executor.Close() if env.JUnitParserEnabled() || capabilities.Enabled(supported, capabilities.CapabilityJUnitReports) { + fmt.Printf("FSPrefix: %s\n", env.Config().Execution.FSPrefix) junitProcessor := artifacts.NewJUnitPostProcessor(filesystem.NewOSFileSystem(), executor, walker.Root(), env.Config().Execution.FSPrefix) handlerOpts = append(handlerOpts, artifacts.WithPostProcessor(junitProcessor)) }