From 9d4b4c955d78e4bc64d39a6cf47acbc81f168632 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sun, 3 Nov 2024 17:59:52 -0500 Subject: [PATCH] fixup! test(a3p-integration): Try to get more insight into the failing test --- a3p-integration/proposals/z:acceptance/use.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/a3p-integration/proposals/z:acceptance/use.sh b/a3p-integration/proposals/z:acceptance/use.sh index 1e59caac5e5d..f00b6cccc382 100644 --- a/a3p-integration/proposals/z:acceptance/use.sh +++ b/a3p-integration/proposals/z:acceptance/use.sh @@ -55,14 +55,11 @@ cat "$CONFIG_FILE" | awk ' ' > "$TMP_FILE" echo "# Diff" diff -u "$CONFIG_FILE" "$TMP_FILE" || true -set -x -# redirection preserves file permissions -if ! cat "$TMP_FILE" > "$CONFIG_FILE"; then - ls -l "$CONFIG_FILE" "$TMP_FILE" - whoami - sudo cat "$TMP_FILE" > "$CONFIG_FILE" -fi +cat "$TMP_FILE" > "$CONFIG_FILE" # redirection preserves file permissions killAgd startAgd waitForBlock 3 -curl -sS http://localhost:26660/metrics | head +set -v +# https://prometheus.io/docs/instrumenting/exposition_formats/ +curl -sSL http://localhost:26660/metrics \ + | grep -E '^[[:space:]]*#[[:space:]]*(HELP|TYPE)\b' || true