File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ fn str_to_cdata(s: &str) -> String {
3131 // `<?'` in a CDATA block, so the escaping gets a little weird.
3232 let escaped_output = s. replace ( "]]>" , "]]]]><![CDATA[>" ) ;
3333 let escaped_output = escaped_output. replace ( "<?" , "<]]><![CDATA[?" ) ;
34- // We also smuggle newlines as 
 so as to keep all the output on line line
34+ // We also smuggle newlines as 
 so as to keep all the output on one line
3535 let escaped_output = escaped_output. replace ( "\n " , "]]>
<![CDATA[" ) ;
3636 // Prune empty CDATA blocks resulting from any escaping
3737 let escaped_output = escaped_output. replace ( "<![CDATA[]]>" , "" ) ;
@@ -163,7 +163,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
163163 test_name,
164164 duration. as_secs_f64( )
165165 ) ) ?;
166- if stdout. is_empty ( ) {
166+ if stdout. is_empty ( ) || !state . options . display_output {
167167 self . write_message ( "/>" ) ?;
168168 } else {
169169 self . write_message ( "><system-out>" ) ?;
You can’t perform that action at this time.
0 commit comments