From 3e62ff9ec74d22bb00923772feb37eda9ebe53dc Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 17 Feb 2026 19:51:55 +0100 Subject: [PATCH] initfs: Use CARGO_TARGET_TMPDIR in test --- initfs/.gitignore | 4 ---- initfs/tools/out.img | Bin 32771 -> 0 bytes initfs/tools/tests/archive_and_read.rs | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 initfs/.gitignore delete mode 100644 initfs/tools/out.img diff --git a/initfs/.gitignore b/initfs/.gitignore deleted file mode 100644 index 2b9c6e3e30..0000000000 --- a/initfs/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -Cargo.lock -# TODO: Maybe use an OUT_DIR environment variable, or mktemp, rather than -# writing directly to the git repository root? -/out.img diff --git a/initfs/tools/out.img b/initfs/tools/out.img deleted file mode 100644 index 13de974a37b65852902216aece168769140ed77d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32771 zcmeI)u}#B36adg4LV*xS8R1Hr1SA?tDr$r>06}qtMMw}aB4vhP1cqP@24RNaLr5-@ zB84NpFBiUlXY2d9x;x8v#dyBFsotX(arX65MjhWVygZEce{@$lS4TZU5FkK+009C7 z2oNAZfB*pk`zY|!iQZ8zJT=vSb|S8F^Sa5cJCROu^S;UDYyTDnE}EP(0t5&UAV7cs z0RjXF5FkLHeFEL+My%Rbmx>4wAV7cs0RjXF5FkK+0D;{JbfVtU zSxpwHDi+n?xIIsx5&{GW5FkK+009C72oNAZV3R Result<()> { env_logger::init(); let args = redox_initfs_tools::Args { - destination_path: Path::new("out.img"), + destination_path: &Path::new(env!("CARGO_TARGET_TMPDIR")).join("out.img"), source: Path::new("data"), bootstrap_code: None, max_size: redox_initfs_tools::DEFAULT_MAX_SIZE,