From 5fbf8adf41f68cd9a69fe6a2c8df969fe020d2bd Mon Sep 17 00:00:00 2001 From: Ethan P Date: Thu, 14 May 2020 00:34:18 -0700 Subject: [PATCH] build: Avoid unnecessary reprinting when verifying tests --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index ef5930b..187499c 100755 --- a/build.sh +++ b/build.sh @@ -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)