Skip to content

Commit 03d29c1

Browse files
committed
tests: Explicitly specify a /tmp directory
Explicitly specify a /tmp directory, this fixes an issue on macOS where the default tmp path that gets used could be very long, causing unix domain socket tests to fail due to path length. Signed-off-by: Matej Hrica <mhrica@redhat.com>
1 parent 8ae32b6 commit 03d29c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/runner/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fn run_tests(
188188
fs::create_dir_all(&path).context("Failed to create base directory")?;
189189
path
190190
}
191-
None => TempDir::new("libkrun-tests")
191+
None => TempDir::new_in("/tmp", "libkrun-tests")
192192
.context("Failed to create temp base directory")?
193193
.into_path(),
194194
};

0 commit comments

Comments
 (0)