mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:10:45 +00:00
test(docker): make e2e temp logs portable
This commit is contained in:
@@ -4,7 +4,9 @@ run_logged() {
|
||||
local label="$1"
|
||||
shift
|
||||
local log_file
|
||||
log_file="$(mktemp "${TMPDIR:-/tmp}/openclaw-${label}.XXXXXX").log"
|
||||
local tmp_dir="${TMPDIR:-/tmp}"
|
||||
tmp_dir="${tmp_dir%/}"
|
||||
log_file="$(mktemp "$tmp_dir/openclaw-${label}.XXXXXX")"
|
||||
if ! "$@" >"$log_file" 2>&1; then
|
||||
cat "$log_file"
|
||||
rm -f "$log_file"
|
||||
|
||||
Reference in New Issue
Block a user