changeset 5847:f267302093d4

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 42eac77355d2
children 35fec642fd32
files test/sun/security/mscapi/ShortRSAKey1024.sh
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/mscapi/ShortRSAKey1024.sh	Wed Jul 25 12:47:28 2012 -0700
+++ b/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 \