mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
replace /tmp with /var/tmp
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
This commit is contained in:
parent
62c5fd9438
commit
b3b57e53a4
@ -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` instead of `/tmp`.
|
||||
l.ltrMgr = utils.NewLocalResourceManager("local-driver", l.hostExec, "/var")
|
||||
// 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")
|
||||
|
||||
// This can't be done in SkipUnsupportedTest because the test framework is not initialized yet
|
||||
if l.volumeType == utils.LocalVolumeGCELocalSSD {
|
||||
|
Loading…
Reference in New Issue
Block a user