Sha256: 6f1ba28fc369d8d1d21ea46739ee64fd5ffe6608ec5aa1ab4595df7550fac7ba
Contents?: true
Size: 929 Bytes
Versions: 18
Compression:
Stored size: 929 Bytes
Contents
# This test is intended to ensure with --debug and --color, facter sends escape sequences to colorize the output test_name "C86545: --debug and --color command-line options should print DEBUG messages with color escape sequences" do tag 'risk:high' confine :except, :platform => 'windows' # On windows we don't get an escape sequence to detect to color change agents.each do |agent| step "Agent #{agent}: retrieve debug info from stderr using --debug and --color option" do # set the TERM type to be a color xterm to help ensure we emit the escape sequence to change the color on(agent, facter('--debug --color'), :environment => { 'TERM' => 'xterm-256color' }) do |facter_output| assert_match(/DEBUG/, facter_output.stderr, "Expected DEBUG information in stderr") assert_match(/\e\[0;/, facter_output.stderr, "Expected to see an escape sequence in the output") end end end end
Version data entries
18 entries across 18 versions & 2 rubygems