execution tests probably fixed

This commit is contained in:
anna
2013-10-09 16:27:51 +02:00
parent 1e5438749a
commit bad439d3cf
@@ -144,13 +144,6 @@ public class OutputChecker {
if (expected.length() != actual.length()) {
System.out.println("Text sizes differ: expected " + expected.length() + " but actual: " + actual.length());
}
for (int idx = 0; idx < len; idx++) {
final char expectedChar = expected.charAt(idx);
final char actualChar = actual.charAt(idx);
if (expectedChar != actualChar) {
System.out.println("Difference at index " + idx + ": ;" + expectedChar + "' != '" + actualChar + "'");
}
}
if (expected.length() > len) {
System.out.println("Rest from expected text is: \"" + expected.substring(len) + "\"");
}
@@ -194,6 +187,7 @@ public class OutputChecker {
result = StringUtil.replace(result, "\r\n", "\n");
result = StringUtil.replace(result, "\r", "\n");
result = replaceAdditionalInOutput(result);
result = StringUtil.replace(result, testJdk.getHomePath(), "!TEST_JDK!", shouldIgnoreCase);
result = StringUtil.replace(result, myAppPath, "!APP_PATH!", shouldIgnoreCase);
result = StringUtil.replace(result, myAppPath.replace(File.separatorChar, '/'), "!APP_PATH!", shouldIgnoreCase);
@@ -208,8 +202,6 @@ public class OutputChecker {
result = StringUtil.replace(result, PathManager.getHomePath(), "!IDEA_HOME!", shouldIgnoreCase);
result = StringUtil.replace(result, "Process finished with exit code 255", "Process finished with exit code -1");
result = replaceAdditionalInOutput(result);
// result = result.replaceAll(" +\n", "\n");
result = result.replaceAll("!HOST_NAME!:\\d*", "!HOST_NAME!:!HOST_PORT!");
result = result.replaceAll("at \\'.*?\\'", "at '!HOST_NAME!:PORT_NAME!'");