Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-08-14 09:39:47 +0000
committerSravan Kumar Lakkimsetti2018-08-14 10:12:27 +0000
commitfc4a4cc2fa612ea8748cbb42acbd39f918e1a8ab (patch)
tree5dbc9bca0f4016cec535b79e40037c5b77e34871
parentf4b5d4f5c9408f73b30ef5767b572b348a860ed9 (diff)
downloadeclipse.platform.releng.buildtools-fc4a4cc2fa612ea8748cbb42acbd39f918e1a8ab.tar.gz
eclipse.platform.releng.buildtools-fc4a4cc2fa612ea8748cbb42acbd39f918e1a8ab.tar.xz
eclipse.platform.releng.buildtools-fc4a4cc2fa612ea8748cbb42acbd39f918e1a8ab.zip
Bug 531057- JUnit 5 support for tests
Adjust results generator for the change in ant junitlauncher from errors to aborted element in xml. Change-Id: Ifb7af115fa14e836b4aaad73d261dcc8a0dd23bf Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestResultsGenerator.java7
-rw-r--r--pom.xml4
2 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestResultsGenerator.java b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestResultsGenerator.java
index 88f7d3f..bd4dc5f 100644
--- a/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestResultsGenerator.java
+++ b/bundles/org.eclipse.build.tools/src/org/eclipse/releng/generators/TestResultsGenerator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2000, 2018 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
@@ -458,7 +458,10 @@ public class TestResultsGenerator extends Task {
for (int i = 0; i < elementCount; i++) {
final Element element = (Element) elements.item(i);
final NamedNodeMap attributes = element.getAttributes();
- Node aNode = attributes.getNamedItem("errors");
+ Node aNode = attributes.getNamedItem("aborted");
+ if (aNode == null) {
+ attributes.getNamedItem("errors");
+ }
errorCount = errorCount + Integer.parseInt(aNode.getNodeValue());
aNode = attributes.getNamedItem("failures");
errorCount = errorCount + Integer.parseInt(aNode.getNodeValue());
diff --git a/pom.xml b/pom.xml
index 78270e4..7b8ca36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,7 +36,7 @@
<buildTimestamp>${maven.build.timestamp}</buildTimestamp>
<buildType>I</buildType>
<buildId>${buildType}${buildTimestamp}</buildId>
- <comparator.repo>http://download.eclipse.org/eclipse/updates/4.7-I-builds</comparator.repo>
+ <comparator.repo>http://download.eclipse.org/eclipse/updates/4.9-I-builds</comparator.repo>
<egit-repo.url>http://download.eclipse.org/egit/updates</egit-repo.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cbi-jdt-repo.url>https://repo.eclipse.org/content/repositories/eclipse-staging/</cbi-jdt-repo.url>
@@ -95,7 +95,7 @@
<repository>
<id>eclipse-platform-repository</id>
<layout>p2</layout>
- <!-- Normally should be "latest milestone" for stability, once we have one for 4.8. -->
+ <!-- Normally should be "latest milestone" for stability, once we have one for 4.9. -->
<url>http://download.eclipse.org/eclipse/updates/4.9-I-builds/</url>
</repository>
<repository>

Back to the top