@@ -1108,7 +1108,9 @@ def setUp(self):
11081108 # output of following command -
11091109 # editor - was: 'vim'
11101110 # now: '?'
1111- # editor: '?'
1111+ # Name Value Description
1112+ # ====================================================================================================
1113+ # editor ? Program used by 'edit'
11121114 self .editor_val = self .get_cephfs_shell_cmd_output (
11131115 'set editor ?, set editor' ).split ('\n ' )[4 ]
11141116 self .editor_val = self .editor_val .split ()[1 ].strip (). \
@@ -1125,7 +1127,9 @@ def test_reading_conf(self):
11251127
11261128 # output of following command -
11271129 # CephFS:~/>>> set editor
1128- # editor: 'vim'
1130+ # Name Value Description
1131+ # ====================================================================================================
1132+ # editor ??? Program used by 'edit'
11291133 final_editor_val = self .get_cephfs_shell_cmd_output (
11301134 cmd = 'set editor' , shell_conf_path = self .tempconfpath )
11311135 final_editor_val = final_editor_val .split ('\n ' )[2 ]
@@ -1136,14 +1140,16 @@ def test_reading_conf(self):
11361140
11371141 def test_reading_conf_with_dup_opt (self ):
11381142 """
1139- Read conf without duplicate sections/options.
1143+ Read conf with duplicate sections/options.
11401144 """
11411145 self .write_tempconf ("[cephfs-shell]\n editor = ???\n editor = " +
11421146 self .editor_val )
11431147
11441148 # output of following command -
11451149 # CephFS:~/>>> set editor
1146- # editor: 'vim'
1150+ # Name Value Description
1151+ # ====================================================================================================
1152+ # editor ? Program used by 'edit'
11471153 final_editor_val = self .get_cephfs_shell_cmd_output (
11481154 cmd = 'set editor' , shell_conf_path = self .tempconfpath )
11491155 final_editor_val = final_editor_val .split ('\n ' )[2 ]
@@ -1156,9 +1162,11 @@ def test_setting_opt_after_reading_conf(self):
11561162 self .write_tempconf ("[cephfs-shell]\n editor = ???" )
11571163
11581164 # output of following command -
1159- # editor - was: vim
1160- # now: vim
1161- # editor: vim
1165+ # editor - was: ???
1166+ # now: ?
1167+ # Name Value Description
1168+ # ====================================================================================================
1169+ # editor ? Program used by 'edit'
11621170 final_editor_val = self .get_cephfs_shell_cmd_output (
11631171 cmd = 'set editor %s, set editor' % self .editor_val ,
11641172 shell_conf_path = self .tempconfpath )
0 commit comments