Skip to content

Commit

Permalink
Fix for join output jars tests on Linux and MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
badmannersteam committed Mar 12, 2024
1 parent fd26dd9 commit 3da362a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,12 @@ class DesktopApplicationTest : GradlePluginTestBase() {
if (distributionDir == null || !distributionDir.exists()) {
error("Invalid distribution path: $distributionDir")
}
val appDir = distributionDir.resolve("TestPackage/app")
val appDirSubPath = when (currentOS) {
OS.Linux -> "TestPackage/lib/app"
OS.Windows -> "TestPackage/app"
OS.MacOS -> "TestPackage.app/Contents/app"
}
val appDir = distributionDir.resolve(appDirSubPath)
val jarsCount = appDir.listFiles()?.count { it.name.endsWith(".jar", ignoreCase = true) } ?: 0
assert(jarsCount == 1)
}
Expand Down

0 comments on commit 3da362a

Please sign in to comment.