From 8852b4d610009bd4afe1c1b579f215dce24b39d0 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 23 Feb 2023 10:37:39 +0800 Subject: [PATCH] qa: make the xfstests tmp directories to be readable and excutable The user namespace test case will excute some commands as the other user. And the temporary direcotry now has the rx permission for other users by default. The test then will fail otherwise. Fixes: https://tracker.ceph.com/issues/58760 Signed-off-by: Xiubo Li --- qa/tasks/cephfs/xfstests_dev.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qa/tasks/cephfs/xfstests_dev.py b/qa/tasks/cephfs/xfstests_dev.py index bb7890001cb34..ea317a7548b7a 100644 --- a/qa/tasks/cephfs/xfstests_dev.py +++ b/qa/tasks/cephfs/xfstests_dev.py @@ -129,6 +129,10 @@ class XFSTestsDev(CephFSTestCase): remoteurl = 'https://git.ceph.com/xfstests-dev.git' self.xfstests_repo_path = self.mount_a.client_remote.mkdtemp(suffix= 'xfstests-dev') + # Make the xfstests_repo_path to be readable and excutable for other + # users at all places, this will allow the xfstests to run the user + # namespace test cases, such as the generic/317. + self.mount_a.run_shell(['sudo', 'chmod', 'a+rx', self.xfstests_repo_path]) self.mount_a.run_shell(['git', 'clone', remoteurl, '--depth', '1', self.xfstests_repo_path]) @@ -136,6 +140,10 @@ class XFSTestsDev(CephFSTestCase): remoteurl = 'https://git.ceph.com/xfsprogs-dev.git' self.xfsprogs_repo_path = self.mount_a.client_remote.mkdtemp(suffix= 'xfsprogs-dev') + # Make the xfsprogs_repo_path to be readable and excutable for other + # users at all places, this will allow the xfstests to run the user + # namespace test cases. + self.mount_a.run_shell(['sudo', 'chmod', 'a+rx', self.xfsprogs_repo_path]) self.mount_a.run_shell(['git', 'clone', remoteurl, '--depth', '1', self.xfsprogs_repo_path]) -- 2.39.5