Do not support 510 with system watchdog on Linux

This commit is contained in:
Jordan Dominion
2023-07-13 08:54:10 -04:00
parent 3159c4c705
commit f707d7812f
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -24,6 +24,9 @@
/datum/tgs_api/v5/New()
. = ..()
#if DM_VERSION < 511
TGS_WARNING_LOG("TGS V5 interop does not support the non-basic watchdog on versions prior to 511! Make sure you've configured the basic watchdog in TGS setting or update BYOND!")
#endif
TGS_DEBUG_LOG("V5 API created")
/datum/tgs_api/v5/ApiVersion()
@@ -1120,7 +1120,10 @@ namespace Tgstation.Server.Tests.Live
var compatTests = FailFast(
instanceTest
.RunCompatTests(
new Version(510, 1346),
// linux 510 has a critical bug where replacing the directory in non-basic watchdogs causes the DreamDaemon cwd to change
new PlatformIdentifier().IsWindows || Environment.GetEnvironmentVariable("General__UseBasicWatchdog") == "true"
? new Version(510, 1346)
: new Version(511, 1385),
adminClient.Instances.CreateClient(compatInstance),
compatDMPort,
compatDDPort,