Skip to content

Commit 1f8f69f

Browse files
committed
test: escape double quotes for prometheus output
1 parent b2b9a3c commit 1f8f69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/e2e-tests/tools/convert_metrics_to_prometheus.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for file in "${FILES[@]}"; do
4242

4343
filename=$(basename "$file")
4444
scenario_id="${filename%%-chrome-usage.json}"
45-
scenario_name=$(jq -r '.scenarioName // empty' "$file")
45+
scenario_name=$(jq -r '.scenarioName // empty' "$file" | sed 's/"/\\"/g')
4646
data_length=$(jq '.data | length' "$file")
4747

4848
echo "# Metrics from $filename" >> "$OUTPUT_FILE"

0 commit comments

Comments
 (0)