Skip to content

Commit e6b242f

Browse files
cbeauchesnedevflow.devflow-routing-intake
andauthored
chore(ci) : fix final_status workaround (#10852)
fix final_status workaround debug debug 2 try --huge Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
1 parent b8aeb63 commit e6b242f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.gitlab/collect_results.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@ do
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"
8080

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-
8781
if cmp -s "$RESULT_XML_FILE" "$TARGET_DIR/$AGGREGATED_FILE_NAME"; then
8882
echo ""
8983
else
90-
echo -n " (non-stable test names detected)"
84+
echo " (non-stable test names detected)"
9185
fi
86+
87+
echo "Add dd_tags[test.final_status] property to each testcase on $TARGET_DIR/$AGGREGATED_FILE_NAME"
88+
xsl_file="$(dirname "$0")/add_final_status.xsl"
89+
tmp_file="$(mktemp)"
90+
xsltproc --huge --output "$tmp_file" "$xsl_file" "$TARGET_DIR/$AGGREGATED_FILE_NAME"
91+
mv "$tmp_file" "$TARGET_DIR/$AGGREGATED_FILE_NAME"
92+
9293
done < <(find "${TEST_RESULT_DIRS[@]}" -name \*.xml -print0)

0 commit comments

Comments
 (0)