Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ops/platform-acceptance/linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

# Many acceptance checks are bare `[[ ... ]]` or `--quiet` assertions that exit
# non-zero with no output, so a failure surfaces only as "exit code 1" with no
# clue which check failed. Report the exact line and command instead, so a
# failing candidate is diagnosable from the log alone rather than by rerunning.
trap 'status=$?; echo "::error::Linux acceptance failed at line ${LINENO} (exit ${status}): ${BASH_COMMAND}" >&2' ERR

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
ARCHIVE="${HELM_CANDIDATE_ARCHIVE:?exact Linux candidate archive is required}"
OFFLINE_ARCHIVE="${HELM_CANDIDATE_OFFLINE_ARCHIVE:?exact Linux offline candidate archive is required}"
Expand Down
Loading