summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-10-19 19:26:00 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-10-19 19:36:33 -0400
commit48896b05982aeee4499fb4149672449180545832 (patch)
treebe6f22006c0008c3272ba45314a443988d17901c /tools
parentb39ccc606171a1ac7f7cbf83d29ee773b3b30997 (diff)
downloadroux-48896b05982aeee4499fb4149672449180545832.tar.gz
improve tests output for contbuild
Diffstat (limited to 'tools')
-rwxr-xr-xtools/unit.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/unit.sh b/tools/unit.sh
index 756a994..e21bf77 100755
--- a/tools/unit.sh
+++ b/tools/unit.sh
@@ -24,8 +24,7 @@ extract() {
 			next
 		}
 		/^# <<</ {
-			if (p)
-				p = 0
+			p = 0
 		}
 		p
 	" $FILE \
@@ -42,7 +41,7 @@ once() {
 		exit 1
 	fi
 
-	echo "$(basename $T)..."
+	printf "%-45s" "$(basename $T)..."
 
 	if ! $QBE -o $ASM $T
 	then
@@ -83,7 +82,7 @@ once() {
 		return 1
 	fi
 
-	printf "\033[1A\033[45C[ok]\n"
+	echo "[ok]"
 }