NIFI-9181 Prevent unwanted test artifacts in Windows builds

This closes #5355

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Chris Sampson 2021-08-30 21:37:49 +01:00 committed by exceptionfactory
parent d702506f0d
commit 05adcbcc61
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class TestZooKeeperStateServer {
@BeforeClass @BeforeClass
public static void setup() throws IOException, ConfigException { public static void setup() throws IOException, ConfigException {
tempDir = Paths.get("target/TestZooKeeperStateServer"); tempDir = Paths.get("target", "TestZooKeeperStateServer");
dataDir = tempDir.resolve("state"); dataDir = tempDir.resolve("state");
zkServerConfig = tempDir.resolve("zookeeper.properties"); zkServerConfig = tempDir.resolve("zookeeper.properties");
clientPort = InstanceSpec.getRandomPort(); clientPort = InstanceSpec.getRandomPort();

View File

@ -105,7 +105,7 @@ public class ExecuteGroovyScriptTest {
Assume.assumeTrue("Test only runs on *nix", !SystemUtils.IS_OS_WINDOWS); Assume.assumeTrue("Test only runs on *nix", !SystemUtils.IS_OS_WINDOWS);
FileUtils.copyDirectory(new File("src/test/resources"), new File("target/test/resources")); FileUtils.copyDirectory(new File("src/test/resources"), new File("target/test/resources"));
//prepare database connection //prepare database connection
System.setProperty("derby.stream.error.file", "target/derby.log"); System.setProperty("derby.stream.error.file", "target" + File.separator + "derby.log");
// remove previous test database, if any // remove previous test database, if any
final File dbLocation = new File(DB_LOCATION); final File dbLocation = new File(DB_LOCATION);