Skip to content

Commit

Permalink
Fixed bug in getting the failed test count when test suite name had as /
Browse files Browse the repository at this point in the history
Signed-off-by: anajosep <anand.francis.joseph.augustin@oracle.com>
  • Loading branch information
anajosep committed Dec 10, 2018
1 parent 9acb3d5 commit 50d5da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/run_jakartaeetck.sh
Expand Up @@ -342,15 +342,15 @@ ant -f xml/impl/glassfish/s1as.xml run.cts -Dant.opts="${CTS_ANT_OPTS} ${ANT_OPT

# Check if there are any failures in the test. If so, re-run those tests.
FAILED_COUNT=0
FAILED_COUNT=`cat ${JT_REPORT_DIR}/${test_suite}/text/summary.txt | grep 'Failed.' | wc -l`
TEST_SUITE=`echo "${test_suite}" | tr '/' '_'`
FAILED_COUNT=`cat ${JT_REPORT_DIR}/${TEST_SUITE}/text/summary.txt | grep 'Failed.' | wc -l`
if [[ $FAILED_COUNT -gt 0 ]]; then
echo "One or more tests failed. Failure count: $FAILED_COUNT"
echo "Re-running only the failed, error tests"
ant -f xml/impl/glassfish/s1as.xml run.cts -Dant.opts="${CTS_ANT_OPTS} ${ANT_OPTS}" -Drun.client.args="-DpriorStatus=fail,error" -DbuildJwsJaxws=false -Dtest.areas="${test_suite}"
fi

export HOST=`hostname -f`
TEST_SUITE=`echo "${test_suite}" | tr '/' '_'`
echo "1 ${TEST_SUITE} ${HOST}" > ${CTS_HOME}/args.txt
mkdir -p ${WORKSPACE}/results/junitreports/
${JAVA_HOME}/bin/java -Djunit.embed.sysout=true -jar ${TS_HOME}/docker/JTReportParser/JTReportParser.jar ${CTS_HOME}/args.txt ${JT_REPORT_DIR} ${WORKSPACE}/results/junitreports/
Expand Down

0 comments on commit 50d5da3

Please sign in to comment.