Skip to content

Commit

Permalink
[SUREFIRE-1990] The previous XML report should be deleted before new …
Browse files Browse the repository at this point in the history
…run or re-run
  • Loading branch information
Tibor17 committed Jan 27, 2022
1 parent cdb7c9c commit 1b0b59d
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -346,9 +346,8 @@ private OutputStream getOutputStream( WrappedReportEntry testSetReportEntry )
throws IOException
{
File reportFile = getReportFile( testSetReportEntry );

File reportDir = reportFile.getParentFile();

reportFile.delete();
//noinspection ResultOfMethodCallIgnored
reportDir.mkdirs();
return new BufferedOutputStream( new FileOutputStream( reportFile ), 64 * 1024 );
Expand Down

0 comments on commit 1b0b59d

Please sign in to comment.