From: Dhairya Parmar Date: Wed, 26 Apr 2023 07:51:28 +0000 (+0530) Subject: qa: fix test_nfs_export_creation_at_symlink X-Git-Tag: v16.2.14~124^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4e65d305b9053731f1242465ad44dd2826f5ec86;p=ceph.git qa: fix test_nfs_export_creation_at_symlink Signed-off-by: Dhairya Parmar (cherry picked from commit 7a6ab315bb802abad5ca0813605f4cec7c82f185) --- diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index b77660fd5f38e..c144005206c21 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -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