test: skip the unscrubbable session log test when file permissions are not enforced (#2241)

This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-07 18:37:44 -05:00
1 parent d29a1a2dc2
commit 4948f73912
1 file changed
+2
@@ -1,5 +1,6 @@
package com.droiddeck.launcher.session
import com.droiddeck.launcher.assumeFilePermissionsEnforced
import com.droiddeck.launcher.core.LogRedactor
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
@@ -147,6 +148,7 @@ class SessionLogShareTest {
val folder = tmp.newFolder("2026-10-06-06-steam")
File(folder, "session.log").writeText("$secret\n")
org.junit.Assume.assumeFalse(System.getProperty("os.name").startsWith("Windows"))
assumeFilePermissionsEnforced()
folder.setWritable(false)
try {
SessionArtifacts.scrubAndMark(folder)