Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More readable output

  • Loading branch information...
commit e9964ad2503a28e1f6040015fdf091cc4a38396c 1 parent b0c9456
Dmitriy Rybalko ryuk authored

Showing 1 changed file with 4 additions and 7 deletions. Show diff stats Hide diff stats

  1. +4 7 roundup.sh
11 roundup.sh
@@ -144,24 +144,21 @@ roundup_summarize() {
144 144
145 145 while read status name
146 146 do
  147 + printed_name=$(echo $name | sed -e "s/_/ /g")
147 148 case $status in
148 149 p)
149 150 ntests=$(expr $ntests + 1)
150 151 passed=$(expr $passed + 1)
151   - width=$(expr $cols - 1 - 7 - 2)
152   - printf " %-*s " $width "$name:"
153   - printf "$grn[PASS]$clr\n"
  152 + echo " $grn$printed_name$clr"
154 153 ;;
155 154 f)
156 155 ntests=$(expr $ntests + 1)
157 156 failed=$(expr $failed + 1)
158   - width=$(expr $cols - 1 - 7 - 2)
159   - printf " %-*s " $width "$name:"
160   - printf "$red[FAIL]$clr\n"
  157 + echo " $red$printed_name$clr"
161 158 roundup_trace < "$roundup_tmp/$name"
162 159 ;;
163 160 d)
164   - printf "%s\n" "$name"
  161 + printf "%s\n" "$printed_name"
165 162 ;;
166 163 esac
167 164 done

0 comments on commit e9964ad

Please sign in to comment.
Something went wrong with that request. Please try again.