]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: allow not aborting execution when mount command fails
authorRishabh Dave <ridave@redhat.com>
Tue, 24 Mar 2020 11:34:14 +0000 (17:04 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 10 Sep 2020 11:40:51 +0000 (17:10 +0530)
commit9a36a0abd01df68a07b92758bac9c09a11dc75a2
treea0f494662de297530f000c18dd6b2ffae705a166
parent07e493ffb581cac1ae85deac0f8b502f35a75e39
qa/cephfs: allow not aborting execution when mount command fails

This commit adds a new argument check_status to mount methods of
KernelMount, FuseMount, LocalKernelMount and LocalFuseMount. When value
of this argument is False, these methods would catch the
CommandFailedError exception and would return a tuple consisting of the
exception itself, and stdout and stderr of the mount command. This
allows reusing these mount methods while running negative tests for
commands.

The name "check_status" is selected so since teuthology's run() and
vstart_runner's run() use a variable with same name for the very same
purpose.

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