Skip to content

Commit 8438de3

Browse files
amwolffStorj Robot
authored and
Storj Robot
committed
ci: fix test/test-testsuite targets output parsing
Prevent tparse from breaking by filtering non-JSON lines (it works! and has no drawbacks, I think?). Change-Id: I8b17d7c240e77950d800fd3c1f16e15ef60f79d6
1 parent 74654d9 commit 8438de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pipeline {
8888
STORJ_TEST_LOG_LEVEL = 'info'
8989
}
9090
steps {
91-
sh 'make test 2>&1 | tee .build/tests.json | xunit -out .build/tests.xml'
91+
sh 'make test 2>&1 | grep "^{.*" | tee .build/tests.json | xunit -out .build/tests.xml'
9292
}
9393
post {
9494
always {
@@ -115,7 +115,7 @@ pipeline {
115115
}
116116
post {
117117
always {
118-
sh script: 'cat .build/testsuite.json | tparse -all -top -slow 100', returnStatus: true
118+
sh script: 'cat .build/testsuite.json | grep "^{.*" | tparse -all -top -slow 100', returnStatus: true
119119
archiveArtifacts artifacts: '.build/testsuite.json'
120120
junit '.build/testsuite.xml'
121121
}

0 commit comments

Comments
 (0)