[jdk8u-dev] RFR: JDK-8292998: Clean Secmod temporary NSS DB directory before test execution

Martin Balao mbalao at openjdk.org
Fri Aug 26 22:32:11 UTC 2022


Hello,

I'd like to propose this fix as described in https://bugs.openjdk.org/browse/JDK-8292998

The temporary directory used by Secmod tests to copy NSS DB files is deleted (which includes all its files and, potentially, subdirectories) and created empty again before running the test. I decided to implement the recursive delete function here for 3 reasons: 1) it's a short and simple function,  2) convenience (we don't have to link every current Secmod test to a test library) and 3) increase chances of backporting future Secmod tests cleanly. Contrary to the approach of setting a minimum jtreg version required, the scope of this change are Secmod tests only and the risk should be minimal.

Thanks,
Martin.-

-------------

Commit messages:
 - JDK-8292998: Clean Secmod temporary NSS DB directory before test execution.

Changes: https://git.openjdk.org/jdk8u-dev/pull/115/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=115&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292998
  Stats: 27 lines in 1 file changed: 25 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/115.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev pull/115/head:pull/115

PR: https://git.openjdk.org/jdk8u-dev/pull/115


More information about the jdk8u-dev mailing list