lmb / vimto

Run Go tests on a custom kernel
MIT License
18 stars 3 forks source link

fix vimto exec for binaries in /tmp #15

Closed lmb closed 5 months ago

lmb commented 5 months ago

fix vimto exec for binaries in /tmp

vimto exec fails for binaries in /tmp, because I introduced a bug into the
shared directory code. This didn't trigger a failure in CI because we use a
TMPDIR which is a subdirectory of the current working directory.

Add a script helper which allocates a new TMPDIR and fix the bug.

fix incorrect TMPDIR in VM

The VM currently inherits TMPDIR from the host environment. This doesn't
make sense since we set up our own /tmp. Fix this by clearing TMPDIR and
ensuring that /tmp is world writable.

only print warning on EACCES

There is a heuristic which is meant to warn the user if the VM doesn't have
read access to a file residing on 9pfs. Currently it also prints out the
same warning if the file doesn't exist.

Only print the warning if we get EACCES.