]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-shell: fixing TestShellOpts in test_cephfs_shell.py
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Fri, 23 Feb 2024 05:47:30 +0000 (11:17 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Tue, 16 Apr 2024 04:28:09 +0000 (09:58 +0530)
commitefe3cede3e491880f64cb9f43c38b45099cc1e71
tree5d97b16b2809596d77c7539367d8ef8cc5200714
parent9c887f42f674a7a5c1089c3e4ef1b38fecbc0866
cephfs-shell: fixing TestShellOpts in test_cephfs_shell.py

The issue arose due to the change in the output format of the
command `set editor`. Earlier the output format was like:
`editor: 'vim' ` which has been changed to:
```Name    Value                           Description
====================================================================================================
editor  vim                             Program used by 'edit' ```

Due to which fetching the list using indexes was `out of range`.

Introduced by: https://github.com/python-cmd2/cmd2/pull/1269/commits/fd38e706e33ff382a403e8b6956a9c1d24995ed0
Fixes: https://tracker.ceph.com/issues/63699
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 118ac67dffdd686592dabd956ff1d285638e053e)
qa/tasks/cephfs/test_cephfs_shell.py