Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-10-26 05:28:16 -0400
committerAndrey Loskutov2016-10-26 10:01:07 -0400
commit5bd95a98c9010b0a1ed0a1bc25d5742655a6cbed (patch)
tree48e657385046f7d3e781b7dcd836e857e5a71bc1 /org.eclipse.egit.core.test/src
parent0945d179855e62e9df200106a15fcad49ff3aa2f (diff)
downloadegit-5bd95a98c9010b0a1ed0a1bc25d5742655a6cbed.tar.gz
egit-5bd95a98c9010b0a1ed0a1bc25d5742655a6cbed.tar.xz
egit-5bd95a98c9010b0a1ed0a1bc25d5742655a6cbed.zip
Disabled unstable test case
Bug: 506544 Change-Id: I2523862aafd3e3da69c4188714a2a0e2f10be3ca Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.egit.core.test/src')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestUtils.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestUtils.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestUtils.java
index e5d564b85..b6e73a7fb 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestUtils.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestUtils.java
@@ -343,11 +343,24 @@ public class TestUtils {
Thread.sleep(50);
jobs = jobManager.find(family);
if (System.currentTimeMillis() - start > maxWaitTime) {
+ if (busy(jobs)) {
+ System.out.println("Following jobs were still running: "
+ + getJobNames(jobs));
+ }
return;
}
}
}
+ private static String getJobNames(Job[] jobs) {
+ StringBuilder sb = new StringBuilder();
+ for (Job job : jobs) {
+ sb.append(job.getName()).append(" / ").append(job.toString())
+ .append(", ");
+ }
+ return sb.toString();
+ }
+
private static boolean busy(Job[] jobs) {
for (Job job : jobs) {
int state = job.getState();

Back to the top