Skip to content

Commit

Permalink
fixup! test(a3p-integration): Try to get more insight into the failin…
Browse files Browse the repository at this point in the history
…g test
  • Loading branch information
gibson042 committed Nov 4, 2024
1 parent 9aa845f commit 9d4b4c9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions a3p-integration/proposals/z:acceptance/use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d4b4c9

Please sign in to comment.