]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: minor corrections in caps_helper.py
authorRishabh Dave <ridave@redhat.com>
Mon, 13 Mar 2023 12:15:57 +0000 (17:45 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 4 Apr 2024 11:39:42 +0000 (17:09 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1428fb1e738626801326b865340b011003ea6f14)

qa/tasks/cephfs/caps_helper.py

index ac6133a9445c6ee75fa2d5fa54e5ef537871a8a3..4e3d4280e40cbbb22a64cfce60761577eb0d60d6 100644 (file)
@@ -169,7 +169,8 @@ class CapTester(CephFSTestCase):
                         f'hostfs_mntpt = {mount_x.hostfs_mntpt}')
             mount_x.write_file(filepath, filedata)
             self.test_set.append((mount_x, filepath, filedata))
-            log.info('test file created at {path} with data "{data}.')
+            log.info(f'Test file created at "{filepath}" with the following '
+                     f'data -\n"{filedata}"')
 
     def run_cap_tests(self, perm, mntpt=None):
         # TODO
@@ -247,7 +248,7 @@ class CapTester(CephFSTestCase):
         # Example -
         #   orignal path: /mnt/cephfs_x/dir1/dir2/testdir
         #   cephfs dir serving as root for current mnt: /dir1/dir2
-        #   therefore, final path: /mnt/cephfs_x//testdir
+        #   therefore, final path: /mnt/cephfs_x/testdir
         if mntpt:
             self.test_set = [(x, y.replace(mntpt, ''), z) for x, y, z in \
                              self.test_set]