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