Revert "replace /tmp with /var/tmp"

This reverts commit b3b57e53a4.
This commit is contained in:
Jan Safranek 2024-10-07 10:00:16 +02:00
parent a7fcc89ac0
commit 5325ccd18d

View File

@ -1228,8 +1228,8 @@ func (l *localDriver) PrepareTest(ctx context.Context, f *framework.Framework) *
// tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,inode64)
// This prevents scripts and binaries from being executed from the /tmp directory.
// This can cause errors like "Permission denied" when executing files from `/tmp`.
// To pass the test that verifies the execution of files on a volume, we use `/var/tmp` instead of `/tmp`.
l.ltrMgr = utils.NewLocalResourceManager("local-driver", l.hostExec, "/var/tmp")
// To pass the test that verifies the execution of files on a volume, we use `/var` instead of `/tmp`.
l.ltrMgr = utils.NewLocalResourceManager("local-driver", l.hostExec, "/var")
// This can't be done in SkipUnsupportedTest because the test framework is not initialized yet
if l.volumeType == utils.LocalVolumeGCELocalSSD {