File tree 3 files changed +10
-4
lines changed
test/API/commands/session/save
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ class CommandObjectSessionSave : public CommandObjectParsed {
20
20
" Save the current session transcripts to a file.\n "
21
21
" If no file if specified, transcripts will be "
22
22
" saved to a temporary file.\n "
23
- " Note: transcripts will only be saved if interpreter.save-transcript is true.\n " ,
23
+ " Note: transcripts will only be saved if "
24
+ " interpreter.save-transcript is true.\n " ,
24
25
" session save [file]" ) {
25
26
AddSimpleArgumentList (eArgTypePath, eArgRepeatOptional);
26
27
}
Original file line number Diff line number Diff line change @@ -3309,7 +3309,9 @@ bool CommandInterpreter::SaveTranscript(
3309
3309
result.AppendMessageWithFormat (" Session's transcripts saved to %s\n " ,
3310
3310
output_file->c_str ());
3311
3311
if (!GetSaveTranscript ())
3312
- result.AppendError (" Note: the setting interpreter.save-transcript is set to false, so the transcript might not have been recorded." );
3312
+ result.AppendError (
3313
+ " Note: the setting interpreter.save-transcript is set to false, so the "
3314
+ " transcript might not have been recorded." );
3313
3315
3314
3316
if (GetOpenTranscriptInEditor () && Host::IsInteractiveGraphicSession ()) {
3315
3317
const FileSpec file_spec;
Original file line number Diff line number Diff line change @@ -113,14 +113,17 @@ def test_session_save_no_transcript_warning(self):
113
113
res = lldb .SBCommandReturnObject ()
114
114
interpreter .HandleCommand (command , res )
115
115
116
- output_file = self .getBuildArtifact (' my-session' )
116
+ output_file = self .getBuildArtifact (" my-session" )
117
117
118
118
res = lldb .SBCommandReturnObject ()
119
119
interpreter .HandleCommand ("session save " + output_file , res )
120
120
self .assertTrue (res .Succeeded ())
121
121
# We should warn about the setting being false.
122
122
self .assertIn ("interpreter.save-transcript is set to false" , res .GetError ())
123
- self .assertTrue (os .path .getsize (output_file ) == 0 , "Output file should be empty since we didn't save the transcript." )
123
+ self .assertTrue (
124
+ os .path .getsize (output_file ) == 0 ,
125
+ "Output file should be empty since we didn't save the transcript." ,
126
+ )
124
127
125
128
@no_debug_info_test
126
129
def test_session_save_on_quit (self ):
You can’t perform that action at this time.
0 commit comments