Skip to content

Commit e61c159

Browse files
committed
Use collect results
1 parent 5360be3 commit e61c159

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

.gitlab/collect_results.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ do
7777
sed -i '/<testcase/ s/@[0-9a-f]\{5,\}/@HASHCODE/g' "$TARGET_DIR/$AGGREGATED_FILE_NAME"
7878
# Replace random port numbers by marker in testcase XML nodes to get stable test names
7979
sed -i '/<testcase/ s/localhost:[0-9]\{2,5\}/localhost:PORT/g' "$TARGET_DIR/$AGGREGATED_FILE_NAME"
80+
81+
# Add dd_tags[test.final_status] property to each testcase
82+
xsl_file="$(dirname "$0")/add_final_status.xsl"
83+
tmp_file="$(mktemp)"
84+
xsltproc --output "$tmp_file" "$xsl_file" "$TARGET_DIR/$AGGREGATED_FILE_NAME"
85+
mv "$tmp_file" "$TARGET_DIR/$AGGREGATED_FILE_NAME"
86+
8087
if cmp -s "$RESULT_XML_FILE" "$TARGET_DIR/$AGGREGATED_FILE_NAME"; then
8188
echo ""
8289
else

.gitlab/upload_ciapp.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,6 @@ coverage_upload() {
7575
datadog-ci coverage upload --ignored-paths=./test-published-dependencies .
7676
}
7777

78-
add_final_status_tags() {
79-
echo "Add dd_tags[test.final_status] property to each testcase before upload"
80-
local xsl_file
81-
xsl_file="$(dirname "$0")/add_final_status.xsl"
82-
find ./results -name '*.xml' | while read -r xml_file; do
83-
local tmp_file
84-
tmp_file="$(mktemp)"
85-
xsltproc --output "$tmp_file" "$xsl_file" "$xml_file"
86-
mv "$tmp_file" "$xml_file"
87-
done
88-
}
89-
90-
add_final_status_tags
91-
9278
# Upload test results to production environment like all other CI jobs
9379
junit_upload "$DATADOG_API_KEY_PROD"
9480
junit_upload_status=$?

0 commit comments

Comments
 (0)