]> source.dussan.org Git - sonarqube.git/commitdiff
Cleanup temp files generated by CommandExecutorTest.java
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 7 Jul 2011 09:56:06 +0000 (11:56 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 7 Jul 2011 09:56:06 +0000 (11:56 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java

index b0276fecdf6b7ce20a84586f11ae1fcedb56f19d..224d4f94df8c544242224c243a8bfd5c8314cffd 100644 (file)
@@ -39,6 +39,9 @@ public class CommandExecutorTest {
     String executable = getScript("echo");
     int exitCode = CommandExecutor.create().execute(Command.create(executable), 1000L);
     assertThat(exitCode, is(0));
+
+    // the script generates a log in current directory
+    FileUtils.deleteQuietly(new File("echo.log"));
   }
 
   @Test