8298488: [macos13] tools/jpackage tests failing with "Exit code: 137" on macOS
Reviewed-by: asemenyuk
This commit is contained in:
parent
0267aa528b
commit
8962c723a8
@ -401,7 +401,7 @@ public class MacAppImageBuilder extends AbstractAppImageBuilder {
|
||||
ENTITLEMENTS.fetchFrom(params));
|
||||
}
|
||||
restoreKeychainList(params);
|
||||
} else if (Platform.isArmMac()) {
|
||||
} else if (Platform.isMac()) {
|
||||
signAppBundle(params, root, "-", null, null);
|
||||
} else {
|
||||
// Calling signAppBundle() without signingIdentity will result in
|
||||
|
@ -180,10 +180,6 @@ final public class TKit {
|
||||
return (OS.contains("mac"));
|
||||
}
|
||||
|
||||
public static boolean isArmMac() {
|
||||
return (isOSX() && "aarch64".equals(System.getProperty("os.arch")));
|
||||
}
|
||||
|
||||
public static boolean isLinux() {
|
||||
return ((OS.contains("nix") || OS.contains("nux")));
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class AppContentTest {
|
||||
})
|
||||
// On macOS aarch64 we always signing app image and signing will fail, since
|
||||
// test produces invalid app bundle.
|
||||
.setExpectedExitCode(testPathArgs.contains(TEST_BAD) || TKit.isArmMac() ? 1 : 0)
|
||||
.setExpectedExitCode(testPathArgs.contains(TEST_BAD) || TKit.isOSX() ? 1 : 0)
|
||||
.run();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user