]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: remove sudo parameter from run_shell() 46191/head
authorRishabh Dave <ridave@redhat.com>
Fri, 6 May 2022 16:41:40 +0000 (22:11 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 27 Jun 2022 14:26:04 +0000 (19:56 +0530)
commit59675927921c3597bfbdea32f16a5d9c721937c7
tree4864cd60d4b5eedf55c1b7a1decccb6127417f52
parentd28f2a29a720b522dbfdbafee7391281b699b4d7
qa/cephfs: remove sudo parameter from run_shell()

Right now, run_shell() in mount.py accepts both "sudo" and "omit_sudo"
as parameters. It's better to accept only one of these two parameters.
A call to run_shell() where both are set to opposing values will be
buggy. Therefore, methods calling run_shell() must add "sudo" to command
arguments before call and set omit_sudo to False in call.

As a result of this change, methods like stat() and run_python() in
mount.py are now modified to add "sudo" to command arguments
and set omit_sudo to False within their own definitions.

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