make test order stable in teamcity performance tests

This commit is contained in:
peter
2016-11-23 10:33:10 +01:00
parent d61462ce56
commit 260e3548b2
2 changed files with 5 additions and 1 deletions
@@ -440,7 +440,7 @@ public class TestAll implements Test {
return realFreeMemory < needed;
}
private static boolean isPerformanceTestsRun() {
static boolean isPerformanceTestsRun() {
return PERFORMANCE_TESTS_ONLY;
}
@@ -182,6 +182,10 @@ public class TestCaseLoader {
private static final List<String> ourRankList = getTeamCityRankList();
private static List<String> getTeamCityRankList() {
if (TestAll.isPerformanceTestsRun()) {
return Collections.emptyList();
}
String filePath = System.getProperty("teamcity.tests.recentlyFailedTests.file", null);
if (filePath != null) {
try {