aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-04 05:55:00 -0800
committerZac Medico <zmedico@gentoo.org>2013-01-04 05:55:00 -0800
commiteca3ec480f58919105251a543d69f4d698909a41 (patch)
treef30f024db123e6f899c356d2aa26f3ad4855df27 /runtests.sh
parentebuild-ipc: add FifoWriter class (diff)
downloadportage-eca3ec480f58919105251a543d69f4d698909a41.tar.gz
portage-eca3ec480f58919105251a543d69f4d698909a41.tar.bz2
portage-eca3ec480f58919105251a543d69f4d698909a41.zip
runtests.sh summary: add minimum column width
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh
index 6dc0c4005..010a7bf6f 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -77,6 +77,7 @@ if [ ${#status_array[@]} -gt 0 ] ; then
[ ${#version} -gt ${max_len} ] && max_len=${#version}
done
(( columns = max_len + 2 ))
+ (( columns >= 7 )) || columns=7
printf "\nSummary:\n\n"
printf "| %-${columns}s | %s\n|" "Version" "Status"
(( total_cols = columns + 11 ))