7187051: ShortRSAKeynnn.sh tests should do cleanup before start test
authorweijun
Thu, 26 Jul 2012 20:38:44 +0800
changeset 13369 7382e4b019e7
parent 13368 da6b49e66a20
child 13370 785cedd026db
7187051: ShortRSAKeynnn.sh tests should do cleanup before start test Reviewed-by: xuelei
jdk/test/sun/security/mscapi/ShortRSAKey1024.sh
--- 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 \