Skip to content

Commit 162201b

Browse files
committed
use relative classname
1 parent f91df7d commit 162201b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jenkins-integration-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ fi
106106

107107
if [ "${RUN_WALRUS}" == "true" ]; then
108108
# EE
109-
gotestsum --junitfile rosmar-ee.xml --junitfile-project-name rosmar-EE --format standard-verbose -- -coverprofile=coverage_walrus_ee.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode,cb_sg_enterprise $GO_TEST_FLAGS ./${TARGET_PACKAGE} > verbose_unit_ee.out 2>&1 | true
109+
gotestsum --junitfile rosmar-ee.xml --junitfile-project-name rosmar-EE --format standard-verbose --junitfile-testcase-classname relative -- -coverprofile=coverage_walrus_ee.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode,cb_sg_enterprise $GO_TEST_FLAGS ./${TARGET_PACKAGE} > verbose_unit_ee.out 2>&1 | true
110110
xmlstarlet ed -u '//testcase/@classname' -x 'concat("EE-", .)' rosmar-ee.xml > verbose_unit_ee.xml
111111
# CE
112-
gotestsum --junitfile rosmar-ce.xml --junitfile-project-name rosmar-CE --format standard-verbose -- -coverprofile=coverage_walrus_ce.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode $GO_TEST_FLAGS ./${TARGET_PACKAGE} > verbose_unit_ce.out 2>&1 | true
112+
gotestsum --junitfile rosmar-ce.xml --junitfile-project-name rosmar-CE --format standard-verbose --junitfile-testcase-classname relative -- -coverprofile=coverage_walrus_ce.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode $GO_TEST_FLAGS ./${TARGET_PACKAGE} > verbose_unit_ce.out 2>&1 | true
113113
xmlstarlet ed -u '//testcase/@classname' -x 'concat("CE-", .)' rosmar-ce.xml > verbose_unit_ce.xml
114114
fi
115115

@@ -139,7 +139,7 @@ else
139139
GO_TEST_FLAGS="${GO_TEST_FLAGS} -tags cb_sg_devmode"
140140
fi
141141

142-
gotestsum --junitfile="${INT_LOG_FILE_NAME}.xml" --junitfile-project-name integration --format standard-verbose -- ${GO_TEST_FLAGS} -coverprofile=coverage_int.out -coverpkg=github.com/couchbase/sync_gateway/... ./${TARGET_PACKAGE} 2>&1 | stdbuf -oL tee "${INT_LOG_FILE_NAME}.out" | stdbuf -oL grep -a -E '(--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
142+
gotestsum --junitfile="${INT_LOG_FILE_NAME}.xml" --junitfile-project-name integration --junitfile-testcase-classname relative --format standard-verbose -- ${GO_TEST_FLAGS} -coverprofile=coverage_int.out -coverpkg=github.com/couchbase/sync_gateway/... ./${TARGET_PACKAGE} 2>&1 | stdbuf -oL tee "${INT_LOG_FILE_NAME}.out" | stdbuf -oL grep -a -E '(--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
143143
if [ "${PIPESTATUS[0]}" -ne "0" ]; then # If test exit code is not 0 (failed)
144144
echo "Go test failed! Parsing logs to find cause..."
145145
TEST_FAILED=true

0 commit comments

Comments
 (0)