Permalink
Browse files

More readable output

  • Loading branch information...
1 parent b0c9456 commit e9964ad2503a28e1f6040015fdf091cc4a38396c @ryuk ryuk committed Nov 5, 2011
Showing with 4 additions and 7 deletions.
  1. +4 −7 roundup.sh
View
@@ -144,24 +144,21 @@ roundup_summarize() {
while read status name
do
+ printed_name=$(echo $name | sed -e "s/_/ /g")
case $status in
p)
ntests=$(expr $ntests + 1)
passed=$(expr $passed + 1)
- width=$(expr $cols - 1 - 7 - 2)
- printf " %-*s " $width "$name:"
- printf "$grn[PASS]$clr\n"
+ echo " $grn$printed_name$clr"
;;
f)
ntests=$(expr $ntests + 1)
failed=$(expr $failed + 1)
- width=$(expr $cols - 1 - 7 - 2)
- printf " %-*s " $width "$name:"
- printf "$red[FAIL]$clr\n"
+ echo " $red$printed_name$clr"
roundup_trace < "$roundup_tmp/$name"
;;
d)
- printf "%s\n" "$name"
+ printf "%s\n" "$printed_name"
;;
esac
done

0 comments on commit e9964ad

Please sign in to comment.