File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
test/API/commands/session/save Expand file tree Collapse file tree 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 {
2020 " Save the current session transcripts to a file.\n "
2121 " If no file if specified, transcripts will be "
2222 " 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 " ,
2425 " session save [file]" ) {
2526 AddSimpleArgumentList (eArgTypePath, eArgRepeatOptional);
2627 }
Original file line number Diff line number Diff line change @@ -3309,7 +3309,9 @@ bool CommandInterpreter::SaveTranscript(
33093309 result.AppendMessageWithFormat (" Session's transcripts saved to %s\n " ,
33103310 output_file->c_str ());
33113311 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." );
33133315
33143316 if (GetOpenTranscriptInEditor () && Host::IsInteractiveGraphicSession ()) {
33153317 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):
113113 res = lldb .SBCommandReturnObject ()
114114 interpreter .HandleCommand (command , res )
115115
116- output_file = self .getBuildArtifact (' my-session' )
116+ output_file = self .getBuildArtifact (" my-session" )
117117
118118 res = lldb .SBCommandReturnObject ()
119119 interpreter .HandleCommand ("session save " + output_file , res )
120120 self .assertTrue (res .Succeeded ())
121121 # We should warn about the setting being false.
122122 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+ )
124127
125128 @no_debug_info_test
126129 def test_session_save_on_quit (self ):
You can’t perform that action at this time.
0 commit comments