mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-31 17:39:14 +01:00
build: Avoid unnecessary reprinting when verifying tests
This commit is contained in:
parent
43ddb984f5
commit
5fbf8adf41
7
build.sh
7
build.sh
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user