refactor(test): share bundled channel Docker harness helpers

This commit is contained in:
Peter Steinberger
2026-04-29 06:15:01 +01:00
parent f6d23ab5c2
commit 1476e24af3
9 changed files with 87 additions and 101 deletions

View File

@@ -17,6 +17,20 @@ run_logged() {
rm -f "$log_file"
}
run_logged_print() {
local label="$1"
shift
local log_file
log_file="$(docker_e2e_run_log "$label")"
if ! "$@" >"$log_file" 2>&1; then
docker_e2e_print_log "$log_file"
rm -f "$log_file"
return 1
fi
docker_e2e_print_log "$log_file"
rm -f "$log_file"
}
docker_e2e_run_log() {
local label="$1"
local tmp_dir="${TMPDIR:-/tmp}"