- * Package: dev-ruby/mixlib-shellout-1.1.0
- * Repository: gentoo
- * Maintainer: ruby@gentoo.org
- * USE: amd64 elibc_glibc kernel_linux multilib ruby_targets_ree18 ruby_targets_ruby18 ruby_targets_ruby19 test userland_GNU
- * FEATURES: sandbox test userpriv usersandbox
- >>> Unpacking source...
- * Running unpack phase for all ...
- >>> Unpacking mixlib-shellout-1.1.0.tgz to /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/all
- >>> Source unpacked in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work
- >>> Preparing source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
- * Running prepare phase for all ...
- * Running source copy phase for ruby18 ...
- * Running source copy phase for ruby19 ...
- * Running source copy phase for ree18 ...
- * Running prepare phase for ruby18 ...
- * Running prepare phase for ruby19 ...
- * Running prepare phase for ree18 ...
- >>> Source prepared.
- >>> Configuring source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
- >>> Source configured.
- >>> Compiling source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
- * Running compile phase for all ...
- >>> Source compiled.
- * Running test phase for ruby18 ...
- Run options:
- include {:focus=>true}
- exclude {:windows_only=>true, :external=>true}
- All examples were filtered out; ignoring {:focus=>true}
- Mixlib::ShellOut
- when instantiating
- should set the command
- with default settings
- should set default environmental variables
- cwd
- should be nil
- user
- should be nil
- group
- should be nil
- umask
- should be nil
- timeout
- should eql 600
- valid_exit_codes
- should eql [0]
- live_stream
- should be nil
- input
- should be nil
- when setting accessors
- when setting user
- should set the user
- with an integer value for user
- should use the user-supplied uid
- with string value for user
- should compute the uid of the user
- when setting group
- should set the group
- with integer value for group
- should use the user-supplied gid
- with string value for group
- should compute the gid of the user
- when setting the umask
- with octal integer
- should set the umask
- with decimal integer
- should sets the umask
- with string
- should sets the umask
- when setting read timeout
- should set the read timeout
- when setting valid exit codes
- should set the valid exit codes
- when setting a live stream
- should set the live stream
- when setting an input
- should set the input
- with options hash
- should set the working directory
- should set the user
- should set the group
- should set the umask
- should set the timout
- should add environment settings to the default
- should set valid exit codes
- should set the live stream
- should set the input
- when setting custom environments
- when setting the :env option
- should also set the enviroment
- when :environment is set to nil
- should not set any environment
- when :env is set to nil
- should not set any environment
- with an invalid option
- should raise InvalidCommandOPtion
- with array of command and args
- without options
- should set the command to the array of command and args
- with options
- should set the command to the array of command and args
- should evaluate the options
- when executing the command
- with a current working directory
- when running under Unix
- should chdir to the working directory
- when handling locale
- without specifying environment
- should use the C locale by default
- with locale
- should use the requested locale
- with LC_ALL set to nil
- when running under Unix
- should use the parent process's locale (FAILED - 1)
- with a live stream
- should copy the child's stdout to the live stream
- with an input
- should copy the input to the child's stdin
- when running different types of command
- with spaces in the path
- when running under Unix
- should execute
- with lots of long arguments
- should execute
- with special characters
- should execute
- with backslashes
- should execute
- with pipes
- should execute
- should handle stderr
- with stdout and stderr file pipes
- should execute
- should handle stderr
- should write to file pipe
- with stdin file pipe
- should execute
- should handle stderr
- with stdout and stderr file pipes
- should execute
- should write to file pipe
- with &&
- should execute
- with ||
- should execute
- should exit with code 0
- when handling process exit codes
- with normal exit status
- should not raise error
- should set the exit status of the command
- with nonzero exit status
- should raise ShellCommandFailed
- includes output with exceptions from #error!
- should set the exit status of the command
- with valid exit codes
- when exiting with valid code
- should not raise error
- should set the exit status of the command
- when exiting with invalid code
- should raise ShellCommandFailed
- should set the exit status of the command
- with input data
- should raise ShellCommandFailed
- should set the exit status of the command
- when exiting with invalid code 0
- should raise ShellCommandFailed
- should set the exit status of the command
- #invalid!
- should raise ShellCommandFailed
- when handling the subprocess
- with STDOUT and STDERR
- should collect all of STDOUT and STDERR
- with forking subprocess that does not close stdout and stderr
- should not hang
- with subprocess that takes longer than timeout
- should raise CommandTimeout
- with subprocess that exceeds buffersize
- should still reads all of the output
- with subprocess that returns nothing
- should return an empty string for stdout
- should return an empty string for stderr
- with subprocess that closes stdin and continues writing to stdout
- should not hang or lose outupt
- with subprocess that closes stdout and continues writing to stderr
- should not hang or lose outupt
- with subprocess that closes stderr and continues writing to stdout
- should not hang or lose outupt
- with subprocess that closes STDOUT before closing STDERR
- should not hang
- should close all pipes
- with subprocess reading lots of data from stdin
- should not hang
- with subprocess writing lots of data to both stdout and stderr
- when writing to STDOUT first
- should not deadlock
- when writing to STDERR first
- should not deadlock
- with subprocess piping lots of data through stdin, stdout, and stderr
- when writing to STDOUT first
- should not deadlock
- when writing to STDERR first
- should not deadlock
- when subprocess closes prematurely
- with input data
- should raise error
- when subprocess writes, pauses, then continues writing
- should not hang or lose output
- when subprocess pauses before writing
- should not hang or lose output
- when subprocess pauses before reading from stdin
- should not hang or lose output
- when execution fails
- when running under Unix
- should recover the error message
- with input
- should recover the error message
- without input data
- with subprocess that expects stdin
- should close stdin
- #format_for_exception
- should format exception messages
- Failures:
- 1) Mixlib::ShellOut when executing the command when handling locale with LC_ALL set to nil when running under Unix should use the parent process's locale
- Failure/Error: should eql(parent_locale)
-
- expected: "C"
- got: ""
-
- (compared using eql?)
- # /usr/lib64/ruby/gems/1.8/gems/rspec-expectations-2.11.3/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-expectations-2.11.3/lib/rspec/expectations/handler.rb:17:in `handle_matcher'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in `should'
- # ./spec/mixlib/shellout_spec.rb:346
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
- # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'
- # /usr/bin/rspec:8
- Finished in 6.06 seconds
- 99 examples, 1 failure
- Failed examples:
- rspec ./spec/mixlib/shellout_spec.rb:345 # Mixlib::ShellOut when executing the command when handling locale with LC_ALL set to nil when running under Unix should use the parent process's locale
- * ERROR: dev-ruby/mixlib-shellout-1.1.0 failed (test phase):
- * rspec failed
- *
- * Call stack:
- * ebuild.sh, line 93: Called src_test
- * environment, line 4598: Called ruby-ng_src_test
- * environment, line 4277: Called _ruby_each_implementation 'each_ruby_test'
- * environment, line 590: Called _ruby_invoke_environment 'ruby18' 'each_ruby_test'
- * environment, line 642: Called each_ruby_test
- * environment, line 929: Called each_fakegem_test
- * environment, line 909: Called ruby-ng_rspec
- * environment, line 4241: Called die
- * The specific snippet of code:
- * ${RUBY} -S rspec ${rspec_params} "$@" || die "rspec failed"
- *
- * If you need support, post the output of `emerge --info '=dev-ruby/mixlib-shellout-1.1.0'`,
- * the complete build log and the output of `emerge -pqv '=dev-ruby/mixlib-shellout-1.1.0'`.
- !!! When you file a bug report, please include the following information:
- GENTOO_VM= CLASSPATH="/usr/libexec/ccp4/bin:/usr/libexec/ccp4/bin:" JAVA_HOME="/etc/java-config-2/current-system-vm"
- JAVACFLAGS="" COMPILER=""
- and of course, the output of emerge --info
- * The complete build log is located at '/var/log/portage/dev-ruby:mixlib-shellout-1.1.0:20121022-060428.log'.
- * For convenience, a symlink to the build log is located at '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/temp/build.log'.
- * The ebuild environment file is located at '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/temp/environment'.
- * Working directory: '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/ruby18/opscode-mixlib-shellout-5fce9a1'
- * S: '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/ruby18/opscode-mixlib-shellout-5fce9a1'
- >>> Install mixlib-shellout-1.1.0 into /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/image/ category dev-ruby
- * Running install phase for ruby18 ...
- * Running install phase for ruby19 ...
- * Running install phase for ree18 ...
- * Running install phase for all ...
- * Running check install phase for ruby18 ...
- * Running check install phase for ruby19 ...
- * Running check install phase for ree18 ...
- >>> Completed installing mixlib-shellout-1.1.0 into /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/image/