aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2014-09-29 18:58:35 +0200
committerEric Hartmann <hartmann.eric@gmail.com>2014-09-29 18:58:35 +0200
commit73e2ceadeb3d0f44d3a96a07947e26531c409053 (patch)
treee16cf8f4804ba8df220ed475edeb931d62543aac
parentc837d7859afd7a22d15c55f9c33dee2c18f6506f (diff)
downloadsonarqube-73e2ceadeb3d0f44d3a96a07947e26531c409053.tar.gz
sonarqube-73e2ceadeb3d0f44d3a96a07947e26531c409053.zip
Backport fix for UT on Windows
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java b/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
index c69ca04cd05..7a45cea5f2c 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
@@ -50,7 +50,7 @@ public class ProcessEntryPointTest {
@Test
public void load_properties_from_file() throws Exception {
File propsFile = temp.newFile();
- FileUtils.write(propsFile, "sonar.foo=bar\nprocess.key=web\nprocess.sharedDir=" + temp.newFolder().getAbsolutePath());
+ FileUtils.write(propsFile, "sonar.foo=bar\nprocess.key=web\nprocess.sharedDir=" + temp.newFolder().getAbsolutePath().replaceAll("\\\\", "/"));
ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(new String[] {propsFile.getAbsolutePath()});
assertThat(entryPoint.getProps().value("sonar.foo")).isEqualTo("bar");