Closed tkrishtop closed 3 years ago
Hi, @bcrochet thank you for the fix! I tested it, total elapsed time now looks fine but the time for each unit test is still in the previous format <testcase classname="quay.io/rh-nfv-int/testpmd-operator-bundle@sha256:5e28f883faacefa847104ebba1a1a22ee897b7576f0af6b8253c68b5c8f42815" name="ScorecardOlmSuiteCheck" time="10.342975268s">
. Here is the result-junit.xml I got
Bug Description
Junit format requires time to be in seconds, but preflight is using the minute-second format in results-junit.xml.
We have
time="2m52.841440984s"
but, according to junit format, we should havetime="172.841440984"
.That causes a bug in the DCI pipeline display: duration = 0s.
Version and Command Invocation
preflight v1.0.2
Steps to Reproduce:
1) run
preflight operator check
2) results-junit.xml contains time in minute-second format instead of secondsExpected Result
To have time in seconds, i.e. to have
time="172.841440984"
instead oftime="2m52.841440984s"
Actual Result
We have
time="2m52.841440984s"
. It should betime="172.841440984"
.