]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix test_nfs_export_creation_at_symlink 50809/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 10:20:49 +0000 (15:50 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 7a6ab315bb802abad5ca0813605f4cec7c82f185)

qa/tasks/cephfs/test_nfs.py

index b77660fd5f38e6bdb1fcd9bbd89aa528754acc74..c144005206c219c5e00ace969d561f84d2cfbfdd 100644 (file)
@@ -846,14 +846,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