mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 16:36:26 +00:00
![]() Many tests use mktemp to create temporary files and dirs, which will usually put them in /tmp unless instructed otherwise. This had led to many tests trying to give mktemp a useful temp path in ad-hoc ways, and others just using it directly without knowing they're potentially leaving stuff lying around. So we set TMPDIR to FILEDIR, which makes the simplest uses of mktemp put things in the wanted work dir. Included here is a hack to get TMPDIR into the test. If a test has to be run as a different user (most of them), it is run through sudo. ld.so from glibc will not pass TMPDIR to a setuid program, so instead we re-set TMPDIR after sudo before running the target command. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Igor Kozhukhov <igor@dilos.org> |
||
---|---|---|
.. | ||
zfs-images@3331601f6d | ||
.gitignore | ||
commitcheck.sh | ||
common.sh.in | ||
convert_wycheproof.pl | ||
cstyle.pl | ||
dkms.mkconf | ||
dkms.postbuild | ||
kmodtool | ||
make_gitrev.sh | ||
Makefile.am | ||
man-dates.sh | ||
mancheck.sh | ||
paxcheck.sh | ||
update_authors.pl | ||
zfs2zol-patch.sed | ||
zfs_prepare_disk | ||
zfs-helpers.sh | ||
zfs-tests-color.sh | ||
zfs-tests.sh | ||
zfs.sh | ||
zimport.sh | ||
zloop.sh | ||
zol2zfs-patch.sed |