1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 01:59:54 +08:00

Disable sentry during test runs

Exposed to be running by 48434dd683 which
caused test failures.

You'd think that the `IsDeployedBuild` check would catch it but it
doesn't. `IsDeployedBuild` is `AssemblyVersion.Major > 0`, and the
assembly version is taken from the entry assembly. In tests the entry
assembly is either resharper or nunit.
This commit is contained in:
Bartłomiej Dach
2026-04-20 13:37:53 +02:00
Unverified
parent 11f01113a1
commit 16bbfbb4e2
+4
View File
@@ -14,6 +14,7 @@ using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Development;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Framework.Statistics;
@@ -49,6 +50,9 @@ namespace osu.Game.Utils
if (Environment.GetEnvironmentVariable("OSU_DISABLE_ERROR_REPORTING") == "1")
return;
if (DebugUtils.IsNUnitRunning)
return;
if (!game.IsDeployedBuild || !game.CreateEndpoints().WebsiteUrl.EndsWith(@".ppy.sh", StringComparison.Ordinal))
return;