Skip to content

Commit 95efb2b

Browse files
authored
Rollup merge of #93600 - last-partizan:fix-junit-formatter, r=yaahc
fix: Remove extra newlines from junit output This PR fixes extra newline in junit output #93454
2 parents 7712dfd + 088474a commit 95efb2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/test/src/formatters/junit.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
3333
_shuffle_seed: Option<u64>,
3434
) -> io::Result<()> {
3535
// We write xml header on run start
36-
self.out.write_all(b"\n")?;
3736
self.write_message("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
3837
}
3938

@@ -138,7 +137,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
138137
self.write_message("</testsuite>")?;
139138
self.write_message("</testsuites>")?;
140139

141-
self.out.write_all(b"\n\n")?;
140+
self.out.write_all(b"\n")?;
142141

143142
Ok(state.failed == 0)
144143
}

0 commit comments

Comments
 (0)