mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 13:44:03 +00:00
test(docker): quiet success-path e2e logs
This commit is contained in:
14
scripts/lib/docker-e2e-logs.sh
Normal file
14
scripts/lib/docker-e2e-logs.sh
Normal 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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user