test: separate non-hermetic release lanes

This commit is contained in:
Erik 2026-08-18 10:49:22 +02:00
parent 52015f5052
commit 8f490240d4
17 changed files with 131 additions and 114 deletions

View file

@ -16,6 +16,7 @@ namespace AcDream.App.Tests.UI.Layout;
/// <c>ACDREAM_PROBE_LIVE_MOUNT=1</c>; <c>ACDREAM_DAT_DIR</c> can override the
/// ordinary Documents/Asheron's Call location. Reads the DATs read-only.
/// </summary>
[Trait("Lane", "InstalledDat")]
public sealed class CharacterManagementLiveDatTests
{
[InstalledDatFact]
@ -368,9 +369,14 @@ internal sealed class InstalledDatFactAttribute : FactAttribute
{
public InstalledDatFactAttribute()
{
if (Environment.GetEnvironmentVariable("ACDREAM_PROBE_LIVE_MOUNT") != "1")
bool requested = Environment.GetEnvironmentVariable(
"ACDREAM_RUN_INSTALLED_DAT_TESTS") == "1"
|| Environment.GetEnvironmentVariable("ACDREAM_PROBE_LIVE_MOUNT") == "1";
if (!requested)
{
Skip = "Set ACDREAM_PROBE_LIVE_MOUNT=1 to run the installed-DAT LA8 gate.";
Skip = "Installed-DAT lane not requested; set "
+ "ACDREAM_RUN_INSTALLED_DAT_TESTS=1. The legacy "
+ "ACDREAM_PROBE_LIVE_MOUNT=1 switch is also accepted.";
return;
}