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 {
31
31
// `<?'` in a CDATA block, so the escaping gets a little weird.
32
32
let escaped_output = s. replace ( "]]>" , "]]]]><![CDATA[>" ) ;
33
33
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
35
35
let escaped_output = escaped_output. replace ( "\n " , "]]>
<![CDATA[" ) ;
36
36
// Prune empty CDATA blocks resulting from any escaping
37
37
let escaped_output = escaped_output. replace ( "<![CDATA[]]>" , "" ) ;
@@ -163,7 +163,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
163
163
test_name,
164
164
duration. as_secs_f64( )
165
165
) ) ?;
166
- if stdout. is_empty ( ) {
166
+ if stdout. is_empty ( ) || !state . options . display_output {
167
167
self . write_message ( "/>" ) ?;
168
168
} else {
169
169
self . write_message ( "><system-out>" ) ?;
You can’t perform that action at this time.
0 commit comments