aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimonBrandhof <simon.brandhof@gmail.com>2013-04-09 15:16:52 +0200
committerSimonBrandhof <simon.brandhof@gmail.com>2013-04-09 15:16:52 +0200
commit8df600848e9f5254a9a7bea60b8d66248d887b24 (patch)
tree217985a7a6aaa0dabd44d1280782ad0bb7c8164b
parentcc1fcfa7ef85d9da399f77058faa9f6dc8d42760 (diff)
downloadsonar-scanner-cli-8df600848e9f5254a9a7bea60b8d66248d887b24.tar.gz
sonar-scanner-cli-8df600848e9f5254a9a7bea60b8d66248d887b24.zip
Try (again) to fix test on Windows
-rw-r--r--sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java
index d6e1aa6..8237ee7 100644
--- a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java
+++ b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java
@@ -20,6 +20,7 @@
package org.sonar.runner.batch;
import org.apache.commons.io.FilenameUtils;
+import org.apache.commons.lang.StringUtils;
import org.junit.Before;
import org.junit.Test;
@@ -75,6 +76,7 @@ public class FilePatternTest {
}
private String path(File f) throws IOException {
- return FilenameUtils.separatorsToUnix(f.getCanonicalPath());
+ String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath());
+ return StringUtils.removeEnd(s, "/");
}
}