PostScriptTransformTest recursively deletes entire system temporary directory

Description

PostScriptTransformTest calls FileUtils.deleteQuietly on the system temporary directory (/tmp on Linux), causing its recursive deletion (as far as permissions allow), and all manner of havoc. In particular, this also deletes /tmp/Geotools, causing failure of any concurrently running test trying to resolve an EPSG code, not to mention the failure of any concurrently running test that stores data in /tmp.

In setUp:
https://github.com/geoserver/geoserver/blob/master/src/extension/importer/rest/src/test/java/org/geoserver/importer/rest/PostScriptTransformTest.java#L22

FileUtils.getTempDirectory() is not a temporary directory, it is the temporary directory. Later, in teardown:
https://github.com/geoserver/geoserver/blob/master/src/extension/importer/rest/src/test/java/org/geoserver/importer/rest/PostScriptTransformTest.java#L36

Environment

None

Status

Assignee

Andrea Aime

Reporter

Ben Caradoc-Davies

Triage

None

Fix versions

Affects versions

2.14-RC

Components

Priority

Highest
Configure