From: Sage Weil Date: Tue, 1 Jun 2021 17:39:03 +0000 (-0400) Subject: qa/tasks/cephfs/test_nfs: fix export create test X-Git-Tag: v17.1.0~1726^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8683cccd06077bfbfd39e9e5ca3750078937dc0e;p=ceph.git qa/tasks/cephfs/test_nfs: fix export create test Everything after --readonly is non-positional. Signed-off-by: Sage Weil --- diff --git a/qa/tasks/cephfs/test_nfs.py b/qa/tasks/cephfs/test_nfs.py index b6fcd33b492..df3756a2198 100644 --- a/qa/tasks/cephfs/test_nfs.py +++ b/qa/tasks/cephfs/test_nfs.py @@ -348,7 +348,8 @@ class TestNFS(MgrTestCase): # Export-3 for subvolume with r only self._cmd('fs', 'subvolume', 'create', self.fs_name, 'sub_vol') fs_path = self._cmd('fs', 'subvolume', 'getpath', self.fs_name, 'sub_vol').strip() - self._create_export(export_id='3', extra_cmd=[self.pseudo_path+'2', '--readonly', fs_path]) + self._create_export(export_id='3', extra_cmd=[self.pseudo_path+'2', '--readonly', + '--path', fs_path]) # Export-4 for subvolume self._create_export(export_id='4', extra_cmd=[self.pseudo_path+'3', fs_path]) # Check if exports gets listed