8238781: [macos] jpackage tests failed due to "hdiutil: convert failed" in various ways

Reviewed-by: herrick, asemenyuk
This commit is contained in:
Alexander Matveev 2020-12-09 19:02:15 +00:00
parent b977a7b8a5
commit e6b4c4d716

View File

@ -469,7 +469,10 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
hdiUtilVerbosityFlag,
"-format", "UDZO",
"-o", finalDMG.toAbsolutePath().toString());
IOUtils.exec(pb);
new RetryExecutor()
.setMaxAttemptsCount(10)
.setAttemptTimeoutMillis(3000)
.execute(pb);
//add license if needed
if (Files.exists(getConfig_LicenseFile(params))) {
@ -480,7 +483,10 @@ public class MacDmgBundler extends MacBaseInstallerBundler {
"-xml",
getConfig_LicenseFile(params).toAbsolutePath().toString()
);
IOUtils.exec(pb);
new RetryExecutor()
.setMaxAttemptsCount(10)
.setAttemptTimeoutMillis(3000)
.execute(pb);
}
//Delete the temporary image