aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-07-24 10:47:50 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2017-07-24 13:18:50 +0200
commit403b2a5e295b96c2053e21d3ba97d057192d8264 (patch)
treedc72768613c01392e5b6fac2d49b90664bd6c3d1 /src/main/java
parentfc040ce6eec07e3b2722ba94b504272be5ace202 (diff)
PiperOrigin-RevId: 162907213
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java b/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
index a147f9ac9e..029be87f4a 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/TestResultAnalyzer.java
@@ -117,7 +117,7 @@ public class TestResultAnalyzer {
}
private static BlazeTestStatus aggregateStatus(BlazeTestStatus status, BlazeTestStatus other) {
- return status.ordinal() > other.ordinal() ? status : other;
+ return status.getNumber() > other.getNumber() ? status : other;
}
/**
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java b/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
index 7ca226f6fd..93f1b3acff 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java
@@ -416,7 +416,7 @@ public class TestSummary implements Comparable<TestSummary>, BuildEvent {
}
private static int getSortKey(BlazeTestStatus status) {
- return status == BlazeTestStatus.PASSED ? -1 : status.ordinal();
+ return status == BlazeTestStatus.PASSED ? -1 : status.getNumber();
}
@Override