# output of following command -
# editor - was: 'vim'
# now: '?'
- # editor: '?'
+ # Name Value Description
+ # ====================================================================================================
+ # editor ? Program used by 'edit'
self.editor_val = self.get_cephfs_shell_cmd_output(
'set editor ?, set editor').split('\n')[4]
self.editor_val = self.editor_val.split()[1].strip(). \
# output of following command -
# CephFS:~/>>> set editor
- # editor: 'vim'
+ # Name Value Description
+ # ====================================================================================================
+ # editor ??? Program used by 'edit'
final_editor_val = self.get_cephfs_shell_cmd_output(
cmd='set editor', shell_conf_path=self.tempconfpath)
final_editor_val = final_editor_val.split('\n')[2]
def test_reading_conf_with_dup_opt(self):
"""
- Read conf without duplicate sections/options.
+ Read conf with duplicate sections/options.
"""
self.write_tempconf("[cephfs-shell]\neditor = ???\neditor = " +
self.editor_val)
# output of following command -
# CephFS:~/>>> set editor
- # editor: 'vim'
+ # Name Value Description
+ # ====================================================================================================
+ # editor ? Program used by 'edit'
final_editor_val = self.get_cephfs_shell_cmd_output(
cmd='set editor', shell_conf_path=self.tempconfpath)
final_editor_val = final_editor_val.split('\n')[2]
self.write_tempconf("[cephfs-shell]\neditor = ???")
# output of following command -
- # editor - was: vim
- # now: vim
- # editor: vim
+ # editor - was: ???
+ # now: ?
+ # Name Value Description
+ # ====================================================================================================
+ # editor ? Program used by 'edit'
final_editor_val = self.get_cephfs_shell_cmd_output(
cmd='set editor %s, set editor' % self.editor_val,
shell_conf_path=self.tempconfpath)