containers / composefs

a file system for mounting container images
GNU General Public License v2.0
421 stars 29 forks source link

test: remove hardcoded /tmp #296

Closed Kiskae closed 3 months ago

Kiskae commented 3 months ago

Just upstreaming some things I ran into while I was originally packaging for nixpkgs. Since the builds happen in a minimal sandbox it was running into non-existing directories.

The only thing I'm not sure about is the tests that involve fsverity since usually /tmp is a tmpfs and might not support it. But in that case it is probably a better idea to specifically set $TMPDIR for those tests rather than hardcoding /var/tmp