PR #26334 opened by Baptiste Coudurier (bcoudurier) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26334 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26334.patch
run_with_patched_temp passed the host-relative tmpfile path to the generator and the reader, so its tests failed when TARGET_EXEC runs commands in another directory. Pass the target path instead; patching and cleanup keep the host path. Tested all 19 users with a TARGET_EXEC wrapper that does `cd /` (0/19 before, 19/19 after) and without TARGET_EXEC (19/19 before and after). Same change as Fairy's suggestion on https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26001. 🤖 Generated with [Claude Code](https://claude.com/claude-code) From a18f5283ae97af2bf786bab80eca390250d43bab Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier <[email protected]> Date: Tue, 24 Nov 2026 10:17:50 -0800 Subject: [PATCH] tests/fate-run.sh: pass target paths in run_with_patched_temp Fixes its tests when TARGET_EXEC changes directory. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Baptiste Coudurier <[email protected]> --- tests/fate-run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 3c265fce2d4..8485be6f1e8 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -133,14 +133,15 @@ run_with_patched_temp(){ process_tmp=$2 filext=$3 tmpfile=${outdir}/$test.$filext + target_tmpfile=$(target_path "$tmpfile") cleanfiles="$cleanfiles $tmpfile" shift 3 - run $create_tmp $tmpfile || return 1 + run $create_tmp "$target_tmpfile" || return 1 while [ $# -ge 2 ]; do patch_bytes "$tmpfile" "$1" "$2" shift 2 done - run $process_tmp $tmpfile + run $process_tmp "$target_tmpfile" } probefmt(){ -- 2.54.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
