Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PAYARA-243 fix aggregated test report for newer hudson versions
git-svn-id: https://svn.java.net/svn/glassfish~svn/trunk/main@63924 6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
  • Loading branch information
romain_grecourt authored and Pandrex247 committed Jun 8, 2015
1 parent 6843679 commit e51a3e5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions common.sh
Expand Up @@ -727,20 +727,21 @@ aggregated_tests_summary(){
fi
for i in `${AWK} 'BEGIN{RS="<tr><td class=\"pane"} \
{ if (NR > 2) print $2" "$3" "$8" "$11 }' \
{ if (NR > 2) print $2" "$8" "$11 }' \
tests.html | sed \
-e s@'"'@@g \
-e s@'href=/hudson/job/'@@g \
-e s@'/testReport/><img alt='@'#'@g \
-e s@'/aggregatedTestReport/><img alt='@'#'@g \
-e s@'href=/hudson/job/'@@g \
-e s@'/testReport/><img style=text-align:right>'@'#'@g \
-e s@'/aggregatedTestReport/><img style=text-align:right>'@'#'@g \
-e s@' style=text-align:right>'@'#'@g \
-e s@'/'@'#'@g`
-e s@'/'@'#'@g`
do
jobname=`cut -d '#' -f1 <<< $i`
buildnumber=`cut -d '#' -f2 <<< $i`
failednumber=`cut -d '#' -f4 <<< $i`
passednumber=`cut -d '#' -f5 <<< $i`
printf "%s%s%s%s\n" \
failednumber=`cut -d '#' -f3 <<< $i`
totalnumber=`cut -d '#' -f4 <<< $i`
passednumber=$((totalnumber-failed))
printf "%s%s%s%s\n" \
`align_column 55 "." "$jobname (#${buildnumber})"` \
`align_column 15 "." "PASSED(${passednumber})"` \
"FAILED(${failednumber})"
Expand Down

0 comments on commit e51a3e5

Please sign in to comment.