mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Prevent fatal failures on delete failures
This commit is contained in:
parent
82ea4456e4
commit
2169a47325
@ -62,8 +62,17 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
|
||||
if (localStorage.IsValueCreated)
|
||||
{
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user