]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: don't expect "file exists" error for "mkdir -p" 39847/head
authorRishabh Dave <ridave@redhat.com>
Wed, 10 Mar 2021 05:00:32 +0000 (10:30 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 10 Mar 2021 06:35:15 +0000 (12:05 +0530)
commit60d5d7cf9cac250905ec4cfaee0c8d508f98ed3e
treeec16181b4fa07ba50acba98aeebe3e414f12cbdc
parent1b346657418af521ac9cc5ae7c2589fa0a596fc8
qa/cephfs: don't expect "file exists" error for "mkdir -p"

Get rid of try-except block in _create_mntpt() since "mkdir -p" doesn't
raise any error when the directory to be created already exists. Also,
use chmod command instead of mkdir command to set the permission mode on
directory since mkdir command would have no effect on the directory's
permission mode if the directory already exists.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/mount.py
qa/tasks/vstart_runner.py