]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix test_nfs_export_creation_at_symlink 50808/head
authorDhairya Parmar <dparmar@redhat.com>
Wed, 26 Apr 2023 07:51:28 +0000 (13:21 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 2 May 2023 09:50:12 +0000 (15:20 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 7a6ab31)

qa/tasks/cephfs/test_nfs.py

index 28ed69059cc4dc8b51c855a1853ce112200e6e81..0a10709e6c519c19f7c3decc8782f51700f24b80 100644 (file)
@@ -865,14 +865,14 @@ class TestNFS(MgrTestCase):
         preserve_mode = self._sys_cmd(['stat', '-c', '%a', mnt_pt])
         self._create_cluster_with_fs(self.fs_name, mnt_pt)
         self.ctx.cluster.run(args=['mkdir', f'{mnt_pt}/testdir'])
-        self.ctx.cluster.run(args=['ln', '-s', 'testdir', 'testdir_symlink'],
-                             cwd=f'{mnt_pt}')
+        self.ctx.cluster.run(args=['ln', '-s', f'{mnt_pt}/testdir',
+                                   f'{mnt_pt}/testdir_symlink'])
         try:
             self._create_export(export_id='123',
                                 extra_cmd=['--pseudo-path',
                                            self.pseudo_path,
                                            '--path',
-                                           f'{mnt_pt}/testdir_symlink'])
+                                           '/testdir_symlink'])
         except CommandFailedError as e:
             if e.exitstatus != errno.ENOTDIR:
                 raise