From ca7b7e74ecadd48cfac33e5eeac2464bc76eca59 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:22:28 -0500 Subject: [PATCH] test(session): skip the /mnt view comparison on hosts where /mnt is a symlink (#2806) rawAndStorageMountViewsOverlapButDistinctFoldersDoNot canonicalizes /mnt/media_rw/... with the host JVM. On SteamOS and Fedora Atomic /mnt is a symlink to var/mnt, so the path resolves to /var/mnt/media_rw/..., which no Android device produces, and the unit suite fails there. Skip the case when the host's /mnt is a symlink. --- .../java/com/droiddeck/launcher/session/SteamLibrariesTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/test/java/com/droiddeck/launcher/session/SteamLibrariesTest.kt b/app/src/test/java/com/droiddeck/launcher/session/SteamLibrariesTest.kt index 5317e5ca33..cef09d10a5 100644 --- a/app/src/test/java/com/droiddeck/launcher/session/SteamLibrariesTest.kt +++ b/app/src/test/java/com/droiddeck/launcher/session/SteamLibrariesTest.kt @@ -4,6 +4,7 @@ import com.droiddeck.launcher.frontend.AddedGames import com.droiddeck.launcher.frontend.Library import java.io.File import org.junit.Assert.* +import org.junit.Assume.assumeFalse import org.junit.Rule import org.junit.Test import org.junit.rules.TemporaryFolder @@ -145,6 +146,7 @@ class SteamLibrariesTest { } @Test fun rawAndStorageMountViewsOverlapButDistinctFoldersDoNot() { + assumeFalse(java.nio.file.Files.isSymbolicLink(File("/mnt").toPath())) val raw = SteamLibraries.canonical(File("/mnt/media_rw/ABCD-1234/Games")) val storage = SteamLibraries.canonical(File("/storage/ABCD-1234/Games")) assertEquals(storage, raw)