changeset 13369:7382e4b019e7

7187051: ShortRSAKeynnn.sh tests should do cleanup before start test Reviewed-by: xuelei
author weijun
date Thu, 26 Jul 2012 20:38:44 +0800
parents da6b49e66a20
children 785cedd026db
files jdk/test/sun/security/mscapi/ShortRSAKey1024.sh
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/sun/security/mscapi/ShortRSAKey1024.sh	Wed Jul 25 12:47:28 2012 -0700
+++ b/jdk/test/sun/security/mscapi/ShortRSAKey1024.sh	Thu Jul 26 20:38:44 2012 +0800
@@ -62,6 +62,13 @@
 case "$OS" in
     Windows* | CYGWIN* )
 
+        echo "Removing the keypair if it already exists (for unknown reason)..."
+        ${TESTJAVA}${FS}bin${FS}keytool \
+            -delete \
+            -storetype Windows-My \
+            -debug \
+            -alias 7106773.$BITS
+
         echo "Creating a temporary RSA keypair in the Windows-My store..."
         ${TESTJAVA}${FS}bin${FS}keytool \
             -genkeypair \