--- old/test/sun/security/tools/jarsigner/Warning.java 2017-01-23 18:01:58.756008300 +0800 +++ new/test/sun/security/tools/jarsigner/Warning.java 2017-01-23 18:01:58.580159400 +0800 @@ -199,7 +199,7 @@ } String cert = run("keytool", args, req) .shouldHaveExitValue(0).getStdout(); - run("keytool", "-import -alias " + alias, cert).shouldHaveExitValue(0); + run("keytool", "-import -noprompt -alias " + alias, cert).shouldHaveExitValue(0); } // Runs a java tool with command line arguments