mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Deleting specflow folders only if they exist
--HG-- branch : dev
This commit is contained in:
@@ -31,7 +31,9 @@ namespace Orchard.Specs.Bindings {
|
||||
|
||||
[BeforeTestRun]
|
||||
public static void BeforeTestRun() {
|
||||
_orchardTemp.Delete(true).CreateDirectory();
|
||||
if ( _orchardTemp.Exists ) {
|
||||
_orchardTemp.Delete(true).CreateDirectory();
|
||||
}
|
||||
}
|
||||
|
||||
[AfterTestRun]
|
||||
|
Reference in New Issue
Block a user