]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: make the xfstests tmp directories to be readable and excutable
authorXiubo Li <xiubli@redhat.com>
Thu, 23 Feb 2023 02:37:39 +0000 (10:37 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 28 Feb 2023 14:02:56 +0000 (22:02 +0800)
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 <xiubli@redhat.com>
qa/tasks/cephfs/xfstests_dev.py

index bb7890001cb3441f53a39ba42b5a3943b4c7052a..ea317a7548b7a31d48e591383fe811e933e83d89 100644 (file)
@@ -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])