aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 19:47:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 19:47:05 +0900
commit38b79b05fd615b9e055f100f02faf5f5942e45c3 (patch)
tree529c59ea60133cde939dde3755c0cf51b9080012 /tool
parent54b9b80b84760717aadb8bf67f638785ed895a58 (diff)
downloadruby-38b79b05fd615b9e055f100f02faf5f5942e45c3.tar.gz
Fallback job status to normal if no tty
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 4dc4392fc0..79b1a916b0 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -948,7 +948,7 @@ module Test
end
def _prepare_run(suites, type)
- options[:job_status] ||= :replace if @tty && !@verbose
+ options[:job_status] ||= @tty ? :replace : :normal unless @verbose
case options[:color]
when :always
color = true