test(docker): quiet success-path e2e logs

This commit is contained in:
Peter Steinberger
2026-04-09 00:29:24 +01:00
parent ac57c7c309
commit aa79b9fb7d
16 changed files with 103 additions and 33 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
run_logged() {
local label="$1"
shift
local log_file
log_file="$(mktemp "${TMPDIR:-/tmp}/openclaw-${label}.XXXXXX.log")"
if ! "$@" >"$log_file" 2>&1; then
cat "$log_file"
rm -f "$log_file"
return 1
fi
rm -f "$log_file"
}

View File

@@ -14,6 +14,9 @@ openclaw_live_stage_source_tree() {
--exclude=.tmp-precommit-venv \
--exclude=.worktrees \
--exclude=__openclaw_vitest__ \
--exclude=relay.sock \
--exclude='*.sock' \
--exclude='*/*.sock' \
--exclude='apps/*/.build' \
--exclude='apps/*/*.bun-build' \
--exclude='apps/*/.gradle' \
@@ -46,6 +49,9 @@ openclaw_live_stage_state_dir() {
tar -C "$source_dir" \
--exclude=workspace \
--exclude=sandboxes \
--exclude=relay.sock \
--exclude='*.sock' \
--exclude='*/*.sock' \
-cf - . | tar -C "$dest_dir" -xf -
chmod -R u+rwX "$dest_dir" || true
if [ -d "$source_dir/workspace" ] && [ ! -e "$dest_dir/workspace" ]; then