Skip to content

Commit

Permalink
add some more information to junit xml reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ericeckstrand committed Feb 19, 2016
1 parent ca55089 commit 415ad90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion h2o-algos/testMultiNode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $JVM water.H2O -name $CLUSTER_NAME -baseport $CLUSTER_BASEPORT -ga_opt_out 1> $O

# Launch last driver JVM. All output redir'd at the OS level to sandbox files.
echo Running h2o-algos junit tests...
($JVM -Dai.h2o.name=$CLUSTER_NAME -Dai.h2o.baseport=$CLUSTER_BASEPORT -Dai.h2o.ga_opt_out=yes $JUNIT_RUNNER $JUNIT_TESTS_BOOT `cat $OUTDIR/tests.txt` 2>&1 ; echo $? > $OUTDIR/status.0) 1> $OUTDIR/out.0 2>&1
($JVM -Dbuild.id=$BUILD_ID -Djob.name=$JOB_NAME -Dgit.commit=$GIT_COMMIT -Dgit.branch=$GIT_BRANCH -Dai.h2o.name=$CLUSTER_NAME -Dai.h2o.baseport=$CLUSTER_BASEPORT -Dai.h2o.ga_opt_out=yes $JUNIT_RUNNER $JUNIT_TESTS_BOOT `cat $OUTDIR/tests.txt` 2>&1 ; echo $? > $OUTDIR/status.0) 1> $OUTDIR/out.0 2>&1

grep EXECUTION $OUTDIR/out.0 | cut "-d " -f22,19 | awk '{print $2 " " $1}'| sort -gr | head -n 10 >> $OUTDIR/out.0

Expand Down
2 changes: 2 additions & 0 deletions h2o-core/src/test/java/water/junit/XMLTestReporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ public void startTestSuite(String testSuiteName) throws Exception {
StringEscapeUtils.escapeXml(dateFormat.format(new Date(testSuiteStartTime))));
testSuiteElement.setAttribute("hostname",
StringEscapeUtils.escapeXml(InetAddress.getLocalHost().getHostName()));
testSuiteElement.setAttribute("ncpu",
StringEscapeUtils.escapeXml(Integer.toString(Runtime.getRuntime().availableProcessors())));

// system properties
Element propertiesElement = document.createElement("properties");
Expand Down
2 changes: 1 addition & 1 deletion h2o-core/testMultiNode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $JVM water.H2O -name $CLUSTER_NAME -baseport $CLUSTER_BASEPORT --ga_opt_out 1> $

# Launch last driver JVM. All output redir'd at the OS level to sandbox files.
echo Running h2o-core junit tests...
($JVM -Dai.h2o.name=$CLUSTER_NAME -Dai.h2o.baseport=$CLUSTER_BASEPORT -Dai.h2o.ga_opt_out=yes $JUNIT_RUNNER $JUNIT_TESTS_BOOT `cat $OUTDIR/tests.txt` 2>&1 ; echo $? > $OUTDIR/status.0) 1> $OUTDIR/out.0 2>&1
($JVM -Dbuild.id=$BUILD_ID -Djob.name=$JOB_NAME -Dgit.commit=$GIT_COMMIT -Dgit.branch=$GIT_BRANCH -Dai.h2o.name=$CLUSTER_NAME -Dai.h2o.baseport=$CLUSTER_BASEPORT -Dai.h2o.ga_opt_out=yes $JUNIT_RUNNER $JUNIT_TESTS_BOOT `cat $OUTDIR/tests.txt` 2>&1 ; echo $? > $OUTDIR/status.0) 1> $OUTDIR/out.0 2>&1

grep EXECUTION $OUTDIR/out.0 | cut "-d " -f22,19 | awk '{print $2 " " $1}'| sort -gr | head -n 10 >> $OUTDIR/out.0

Expand Down

0 comments on commit 415ad90

Please sign in to comment.