From 088474a408c19180badba6705367520daf4efc2b Mon Sep 17 00:00:00 2001 From: Serg Tereshchenko Date: Tue, 1 Feb 2022 21:41:24 +0200 Subject: [PATCH] fix: Remove extra newlines from junit output --- library/test/src/formatters/junit.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index fa23cf2689671..f940a9ff8f1d9 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -33,7 +33,6 @@ impl OutputFormatter for JunitFormatter { _shuffle_seed: Option, ) -> io::Result<()> { // We write xml header on run start - self.out.write_all(b"\n")?; self.write_message("") } @@ -138,7 +137,7 @@ impl OutputFormatter for JunitFormatter { self.write_message("")?; self.write_message("")?; - self.out.write_all(b"\n\n")?; + self.out.write_all(b"\n")?; Ok(state.failed == 0) }