Skip to content

Commit e058b56

Browse files
committed
fix: runner::spinner new line display
1 parent 2734c70 commit e058b56

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/console_results.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ function console_results::render_result() {
1414

1515
if env::is_simple_output_enabled; then
1616
progress::blank_line
17-
progress::blank_line
1817
fi
1918

2019
local total_tests=0

src/runner.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,16 @@ function runner::load_bench_files() {
4848
runner::clean_set_up_and_tear_down_after_script
4949
done
5050
}
51-
5251
function runner::spinner() {
52+
if env::is_simple_output_enabled; then
53+
printf "\n"
54+
fi
55+
5356
local delay=0.1
5457
local spin_chars="|/-\\"
58+
59+
trap 'printf "\r \r"' EXIT
60+
5561
while true; do
5662
for ((i=0; i<${#spin_chars}; i++)); do
5763
printf "\r%s" "${spin_chars:$i:1}"

0 commit comments

Comments
 (0)