File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
9379junit_upload " $DATADOG_API_KEY_PROD "
9480junit_upload_status=$?
You can’t perform that action at this time.
0 commit comments