Skip to content
Permalink
Browse files

fix test init.

  • Loading branch information...
pabender committed Jun 12, 2019
1 parent d97ee79 commit 14b66b175d98a17995144308315ff2d676d24e1b
Showing with 4 additions and 2 deletions.
  1. +4 −2 java/acceptancetest/step_definitions/apps/ApplicationTestAcceptanceSteps.java
@@ -34,8 +34,10 @@ public ApplicationTestAcceptanceSteps(jmri.InstanceManager instance) {
try {
// create a custom profile
tempFolder =Files.createTempDirectory("AppTest").toFile();
FileUtils.copyDirectory(new File(profile), tempFolder);
System.setProperty("org.jmri.profile", tempFolder.getAbsolutePath() );
File profileDir = new File(tempFolder.getAbsolutePath() + File.separator + "Name" );
FileUtils.copyDirectory(new File(profile), profileDir );
System.setProperty("jmri.prefsdir",tempFolder.getAbsolutePath());
System.setProperty("org.jmri.profile", profileDir.getAbsolutePath() );
} catch(java.io.IOException ioe) {
Assert.fail("Unable to create temporary profile");
}

0 comments on commit 14b66b1

Please sign in to comment.
You can’t perform that action at this time.