mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
ci: build and test on root self-hosted runners (#2237)
This commit is contained in:
1 parent
8fa30b99f9
commit
d29a1a2dc2
10 files changed
+59
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.droiddeck.launcher.runtime
|
||||
|
||||
import com.droiddeck.launcher.assumeFilePermissionsEnforced
|
||||
import java.io.File
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.LinkOption.NOFOLLOW_LINKS
|
||||
@@ -128,6 +129,7 @@ class RuntimeRemovalTest {
|
||||
}
|
||||
|
||||
@Test fun aPartialRemovalStaysQuarantinedAndRetryable() {
|
||||
assumeFilePermissionsEnforced()
|
||||
val root = runtime()
|
||||
try {
|
||||
val removal = LinuxRuntimeInstaller.beginUninstall(null, root)!!
|
||||
@@ -146,6 +148,7 @@ class RuntimeRemovalTest {
|
||||
}
|
||||
|
||||
@Test fun reportsFailureWhenTheRuntimeCannotBeQuarantinedAndAllowsRetry() {
|
||||
assumeFilePermissionsEnforced()
|
||||
val root = runtime()
|
||||
Files.setPosixFilePermissions(dir.toPath(), PosixFilePermissions.fromString("r-xr-xr-x"))
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.droiddeck.launcher.runtime
|
||||
|
||||
import com.droiddeck.launcher.assumeFilePermissionsEnforced
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.nio.file.Files
|
||||
@@ -155,6 +156,7 @@ class RuntimeUserDataCarryTest {
|
||||
}
|
||||
|
||||
@Test fun anUnreadableAppImageDirectoryAbortsBeforeMovingHome() {
|
||||
assumeFilePermissionsEnforced()
|
||||
assumeTrue(Files.getFileStore(tmp.root.toPath()).supportsFileAttributeView("posix"))
|
||||
val old = userTree()
|
||||
val images = File(old, "opt/appimages")
|
||||
@@ -264,6 +266,7 @@ class RuntimeUserDataCarryTest {
|
||||
}
|
||||
|
||||
@Test fun anInaccessibleLiveHomeIsNeverTreatedAsMissing() {
|
||||
assumeFilePermissionsEnforced()
|
||||
assumeTrue(Files.getFileStore(tmp.root.toPath()).supportsFileAttributeView("posix"))
|
||||
val root = tmp.newFolder("runtime")
|
||||
val staging = tmp.newFolder("runtime.new")
|
||||
|
||||
Reference in new issue
Block a user