Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ objects:

echo "Snapshotting prometheus (may take 15s) ..."
queue /tmp/artifacts/metrics/prometheus.tar.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- tar cvzf - -C /prometheus .
FILTER=gzip queue /tmp/artifacts/metrics/prometheus-target-metadata.json.gz oc --insecure-skip-tls-verify exec -n openshift-monitoring prometheus-k8s-0 -- /bin/bash -c "curl -G http://localhost:9090/api/v1/targets/metadata --data-urlencode 'match_target={instance!=\"\"}'"

echo "Running must-gather..."
mkdir -p /tmp/artifacts/must-gather
Expand Down
6 changes: 6 additions & 0 deletions tools/junitmerge/junitmerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func main() {
log.SetFlags(0)
opt := struct {
JSONSummary bool
Skip bool
}{}
flag.BoolVar(&opt.Skip, "exclude-skip", false, "Exclude skipped tests when merging")
flag.BoolVar(&opt.JSONSummary, "json-summary", false, "Convert the result to a single JSON file that summarizes the output")
flag.Parse()

Expand Down Expand Up @@ -156,6 +158,9 @@ func main() {

for _, k := range keys {
testCase := suite.runs[k]
if opt.Skip && testCase.SkipMessage != nil {
continue
}
out.TestCases = append(out.TestCases, testCase)
switch {
case testCase.SkipMessage != nil:
Expand All @@ -165,6 +170,7 @@ func main() {
}
out.Duration += testCase.Duration
}
out.NumTests = uint(len(out.TestCases))
output.Suites = append(output.Suites, out)
}

Expand Down