]> source.dussan.org Git - sonarqube.git/commitdiff
Backport fix for UT on Windows
authorEric Hartmann <hartmann.eric@gmail.com>
Mon, 29 Sep 2014 16:58:35 +0000 (18:58 +0200)
committerEric Hartmann <hartmann.eric@gmail.com>
Mon, 29 Sep 2014 16:58:35 +0000 (18:58 +0200)
server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java

index c69ca04cd057f297fa2e0637f0e8cb915c73abbb..7a45cea5f2c2a725f204f0569c68638ed0a05f5d 100644 (file)
@@ -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");