Fallback job status to normal if no tty

This commit is contained in:
Nobuyoshi Nakada 2023-10-21 19:47:05 +09:00
parent 54b9b80b84
commit 38b79b05fd
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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