The Free Software Media System - Server Backend & API
fix: use build output directory for backup test temp root to avoid low free-space failures on Windows CI runners
zerafachris299810a4a9cb
diff --git a/tests/Jellyfin.Server.Implementations.Tests/FullSystemBackup/BackupServiceTests.cs b/tests/Jellyfin.Server.Implementations.Tests/FullSystemBackup/BackupServiceTests.csindex e868b8c9a5..66c392a6ad 100644--- a/tests/Jellyfin.Server.Implementations.Tests/FullSystemBackup/BackupServiceTests.cs+++ b/tests/Jellyfin.Server.Implementations.Tests/FullSystemBackup/BackupServiceTests.cs@@ -50,7 +50,11 @@ public sealed class BackupServiceTests : IDisposablectx.Database.EnsureCreated();}- _testRoot = Path.Combine(Path.GetTempPath(), "jellyfin-backup-service-tests-" + Guid.NewGuid().ToString("N"));+ // Use the test assembly's own output directory instead of Path.GetTempPath(). On GitHub-hosted+ // windows-latest runners, the system temp directory lives on the constrained C: drive, which can have+ // less than the 5GiB BackupService requires free, causing spurious failures. AppContext.BaseDirectory+ // is under the repo checkout (the much larger D: drive on Windows runners) on all platforms.+ _testRoot = Path.Combine(AppContext.BaseDirectory, "jellyfin-backup-service-tests-" + Guid.NewGuid().ToString("N"));_backupPath = Path.Combine(_testRoot, "Backup");_configurationDirectoryPath = Path.Combine(_testRoot, "Config");Directory.CreateDirectory(_backupPath);