From 20214f6c00a8241519076319d494b73acd407fa7 Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Sun, 13 Mar 2022 10:22:32 -0700 Subject: [PATCH] Don't delete logs after test --- Duplicati/UnitTest/BasicSetupHelper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Duplicati/UnitTest/BasicSetupHelper.cs b/Duplicati/UnitTest/BasicSetupHelper.cs index 4feeae112..01703b486 100644 --- a/Duplicati/UnitTest/BasicSetupHelper.cs +++ b/Duplicati/UnitTest/BasicSetupHelper.cs @@ -104,6 +104,10 @@ namespace Duplicati.UnitTest systemIO.DirectoryCreate(this.DATAFOLDER); systemIO.DirectoryCreate(this.TARGETFOLDER); systemIO.DirectoryCreate(this.RESTOREFOLDER); + if (systemIO.FileExists(this.LOGFILE)) + { + systemIO.FileDelete(this.LOGFILE); + } } [TearDown] @@ -121,10 +125,6 @@ namespace Duplicati.UnitTest { systemIO.DirectoryDelete(this.RESTOREFOLDER, true); } - if (systemIO.FileExists(this.LOGFILE)) - { - systemIO.FileDelete(this.LOGFILE); - } if (systemIO.FileExists(this.DBFILE)) { systemIO.FileDelete(this.DBFILE);