build: Avoid unnecessary reprinting when verifying tests

This commit is contained in:
Ethan P 2020-05-14 00:34:18 -07:00
parent 43ddb984f5
commit 5fbf8adf41
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -461,8 +461,6 @@ if "$OPT_VERIFY"; then
SKIP=0
while read -r action data1 data2 splat; do
[[ "$action" == "result" ]] || continue
printc_msg "\x1B[G\x1B[K%s" "$data1"
case "$data2" in
fail)
printc_err "\x1B[G\x1B[K%s failed.\n" "$data1"
@ -470,8 +468,13 @@ if "$OPT_VERIFY"; then
;;
skip)
printc_msg "\x1B[G\x1B[K%s skipped.\n" "$data1"
((SKIP++)) || true
;;
*)
printc_msg "\x1B[G\x1B[K%s" "$data1"
;;
esac
done < <("${HERE}/test.sh" --compiled --porcelain --jobs=8)