From b3b57e53a49715815f73e3194ad6aa7ecc1dc8d9 Mon Sep 17 00:00:00 2001 From: yaroslavborbat Date: Fri, 4 Oct 2024 13:58:52 +0300 Subject: [PATCH] replace /tmp with /var/tmp Signed-off-by: yaroslavborbat --- test/e2e/storage/drivers/in_tree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/storage/drivers/in_tree.go b/test/e2e/storage/drivers/in_tree.go index 8e6ef01d8f0..402ad397858 100644 --- a/test/e2e/storage/drivers/in_tree.go +++ b/test/e2e/storage/drivers/in_tree.go @@ -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 {