mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:35:35 +08:00
Prevent fatal failures on delete failures
This commit is contained in:
parent
82ea4456e4
commit
2169a47325
@ -62,7 +62,16 @@ namespace osu.Game.Tests.Visual
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage.IsValueCreated)
|
if (localStorage.IsValueCreated)
|
||||||
localStorage.Value.DeleteDirectory(".");
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
localStorage.Value.DeleteDirectory(".");
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// we don't really care if this fails; it will just leave folders lying around from test runs.
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ITestCaseTestRunner CreateRunner() => new OsuTestCaseTestRunner();
|
protected override ITestCaseTestRunner CreateRunner() => new OsuTestCaseTestRunner();
|
||||||
|
Loading…
Reference in New Issue
Block a user