mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-04 07:28:22 +00:00
8278970: [macos] SigningPackageTest is failed with runtime exception
Reviewed-by: herrick, asemenyuk
This commit is contained in:
parent
a5f5d60f25
commit
36676db2fd
@ -76,9 +76,13 @@ public class SigningPackageTest {
|
||||
private static void verifyAppImageInDMG(JPackageCommand cmd) {
|
||||
MacHelper.withExplodedDmg(cmd, dmgImage -> {
|
||||
Path launcherPath = dmgImage.resolve(Path.of("Contents", "MacOS", cmd.name()));
|
||||
SigningBase.verifyCodesign(launcherPath, true);
|
||||
SigningBase.verifyCodesign(dmgImage, true);
|
||||
SigningBase.verifySpctl(dmgImage, "exec");
|
||||
// We will be called with all folders in DMG since JDK-8263155, but
|
||||
// we only need to verify app.
|
||||
if (dmgImage.endsWith(cmd.name() + ".app")) {
|
||||
SigningBase.verifyCodesign(launcherPath, true);
|
||||
SigningBase.verifyCodesign(dmgImage, true);
|
||||
SigningBase.verifySpctl(dmgImage, "exec");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user