File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- junitfile=$1 # filename for jnit annotation plugin
2+ junitfile=$1 # filename for junit annotation plugin
33
44set -euo pipefail
55
@@ -11,10 +11,14 @@ with_go_junit_report
1111
1212echo " --- Go Test fips140=only"
1313set +e
14- GODEBUG=fips140=only go test -tags=integration,requirefips -json - race -v ./... > test-fips-report.json
14+ GODEBUG=fips140=only go test -tags=integration,requirefips -race -v ./... > test-fips-report.txt
1515exit_code=$?
1616set -e
1717
18+ # Buildkite collapse logs under --- symbols
19+ # need to change --- to anything else or switch off collapsing (note: not available at the moment of this commit)
20+ awk ' {gsub("---", "----"); print }' test-fips-report.txt
21+
1822# Create Junit report for junit annotation plugin
19- go-junit-report -parser gojson > " ${junitfile:- junit-report-fips-linux.xml} " < test-fips-report.json
23+ go-junit-report > " ${junitfile:- junit-report-fips-linux.xml} " < test-fips-report.txt
2024exit $exit_code
You can’t perform that action at this time.
0 commit comments