]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: don't use exclam mark in tests in test_cephfs_shell.py
authorRishabh Dave <ridave@redhat.com>
Wed, 20 Apr 2022 11:07:16 +0000 (16:37 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 21 Apr 2022 11:10:29 +0000 (16:40 +0530)
commitfaa506798d83a994942ad9e03e2a7c267a39c5fd
treee468827676fda05041c1bf05e72a18be370495b5
parent66e7b59985fc02d538403649f6c34751992185e3
qa/cephfs: don't use exclam mark in tests in test_cephfs_shell.py

Exclamation mark is a special character for bash as well as
cephfs-shell. For bash, it substitutes current command with matching
command from command history and for cephfs-shell it runs the command
as OS-level command and not inside the cephfs-shell.

And evey command executed in tests (say "ls") is run by passing it as a
parameter to cephfs-shell command (that is "cephfs-shell -c <conf> --
ls"). So, exclamation mark, when used in tests, is consumed by bash
instead of cephfs-shell.

To avoid these complications it's best (and even simpler!) to issue the
command meant for bash on bash without going through cephfs-shell.

Fixes: https://tracker.ceph.com/issues/55394
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_cephfs_shell.py