Skip to content

Commit

Permalink
8238781: [macos] jpackage tests failed due to "hdiutil: convert faile…
Browse files Browse the repository at this point in the history
…d" in various ways

Reviewed-by: herrick, asemenyuk
  • Loading branch information
Alexander Matveev committed Dec 9, 2020
1 parent b977a7b commit e6b4c4d
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -469,7 +469,10 @@ private Path buildDMG( Map<String, ? super Object> params,
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))) {
Expand All @@ -480,7 +483,10 @@ private Path buildDMG( Map<String, ? super Object> params,
"-xml",
getConfig_LicenseFile(params).toAbsolutePath().toString()
);
IOUtils.exec(pb);
new RetryExecutor()
.setMaxAttemptsCount(10)
.setAttemptTimeoutMillis(3000)
.execute(pb);
}

//Delete the temporary image
Expand Down

1 comment on commit e6b4c4d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.