Skip to content

Commit

Permalink
Adjust location of the XML output file
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Dec 19, 2023
1 parent 807a2fa commit 7f8bb4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/certsuite/certsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ func Run(labelsFilter, outputFolder string) error {
// Marshal the claim and output to file
claimBuilder.Build(claimOutputFile)

// Write the file to the flag output-dir
outputFile := *flags.OutputDir + "/" + junitXMLOutputFile

if configuration.GetTestParameters().EnableXMLCreation {
log.Info("XML file creation is enabled. Creating JUnit XML file: %s", junitXMLOutputFile)
claimBuilder.ToJUnitXML(junitXMLOutputFile, startTime, endTime)
log.Info("XML file creation is enabled. Creating JUnit XML file: %s", outputFile)
claimBuilder.ToJUnitXML(outputFile, startTime, endTime)
}

// Send claim file to the collector if specified by env var
Expand Down

0 comments on commit 7f8bb4a

Please sign in to comment.