method
jobs_status
v1_9_3_125 -
Show latest stable
-
0 notes -
Class: Runner
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
jobs_status()
public
Hide source
# File lib/test/unit.rb, line 350 def jobs_status return unless @options[:job_status] puts "" unless @options[:verbose] status_line = @workers.map(&:to_s).join(" ") if @options[:job_status] == :replace and $stdout.tty? @terminal_width ||= begin require 'io/console' $stdout.winsize[1] rescue LoadError, NoMethodError ENV["COLUMNS"].to_i.nonzero? || 80 end @jstr_size ||= 0 del_jobs_status $stdout.flush print status_line[0...@terminal_width] $stdout.flush @jstr_size = [status_line.size, @terminal_width].min else puts status_line end end