1. * Package: dev-ruby/mixlib-shellout-1.1.0
  2. * Repository: gentoo
  3. * Maintainer: ruby@gentoo.org
  4. * USE: amd64 elibc_glibc kernel_linux multilib ruby_targets_ree18 ruby_targets_ruby18 ruby_targets_ruby19 test userland_GNU
  5. * FEATURES: sandbox test userpriv usersandbox
  6. >>> Unpacking source...
  7. * Running unpack phase for all ...
  8. >>> Unpacking mixlib-shellout-1.1.0.tgz to /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/all
  9. >>> Source unpacked in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work
  10. >>> Preparing source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
  11. * Running prepare phase for all ...
  12. * Running source copy phase for ruby18 ...
  13. * Running source copy phase for ruby19 ...
  14. * Running source copy phase for ree18 ...
  15. * Running prepare phase for ruby18 ...
  16. * Running prepare phase for ruby19 ...
  17. * Running prepare phase for ree18 ...
  18. >>> Source prepared.
  19. >>> Configuring source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
  20. >>> Source configured.
  21. >>> Compiling source in /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work ...
  22. * Running compile phase for all ...
  23. >>> Source compiled.
  24. * Running test phase for ruby18 ...
  25. Run options:
  26. include {:focus=>true}
  27. exclude {:windows_only=>true, :external=>true}
  28. All examples were filtered out; ignoring {:focus=>true}
  29. Mixlib::ShellOut
  30. when instantiating
  31. should set the command
  32. with default settings
  33. should set default environmental variables
  34. cwd
  35. should be nil
  36. user
  37. should be nil
  38. group
  39. should be nil
  40. umask
  41. should be nil
  42. timeout
  43. should eql 600
  44. valid_exit_codes
  45. should eql [0]
  46. live_stream
  47. should be nil
  48. input
  49. should be nil
  50. when setting accessors
  51. when setting user
  52. should set the user
  53. with an integer value for user
  54. should use the user-supplied uid
  55. with string value for user
  56. should compute the uid of the user
  57. when setting group
  58. should set the group
  59. with integer value for group
  60. should use the user-supplied gid
  61. with string value for group
  62. should compute the gid of the user
  63. when setting the umask
  64. with octal integer
  65. should set the umask
  66. with decimal integer
  67. should sets the umask
  68. with string
  69. should sets the umask
  70. when setting read timeout
  71. should set the read timeout
  72. when setting valid exit codes
  73. should set the valid exit codes
  74. when setting a live stream
  75. should set the live stream
  76. when setting an input
  77. should set the input
  78. with options hash
  79. should set the working directory
  80. should set the user
  81. should set the group
  82. should set the umask
  83. should set the timout
  84. should add environment settings to the default
  85. should set valid exit codes
  86. should set the live stream
  87. should set the input
  88. when setting custom environments
  89. when setting the :env option
  90. should also set the enviroment
  91. when :environment is set to nil
  92. should not set any environment
  93. when :env is set to nil
  94. should not set any environment
  95. with an invalid option
  96. should raise InvalidCommandOPtion
  97. with array of command and args
  98. without options
  99. should set the command to the array of command and args
  100. with options
  101. should set the command to the array of command and args
  102. should evaluate the options
  103. when executing the command
  104. with a current working directory
  105. when running under Unix
  106. should chdir to the working directory
  107. when handling locale
  108. without specifying environment
  109. should use the C locale by default
  110. with locale
  111. should use the requested locale
  112. with LC_ALL set to nil
  113. when running under Unix
  114. should use the parent process's locale (FAILED - 1)
  115. with a live stream
  116. should copy the child's stdout to the live stream
  117. with an input
  118. should copy the input to the child's stdin
  119. when running different types of command
  120. with spaces in the path
  121. when running under Unix
  122. should execute
  123. with lots of long arguments
  124. should execute
  125. with special characters
  126. should execute
  127. with backslashes
  128. should execute
  129. with pipes
  130. should execute
  131. should handle stderr
  132. with stdout and stderr file pipes
  133. should execute
  134. should handle stderr
  135. should write to file pipe
  136. with stdin file pipe
  137. should execute
  138. should handle stderr
  139. with stdout and stderr file pipes
  140. should execute
  141. should write to file pipe
  142. with &&
  143. should execute
  144. with ||
  145. should execute
  146. should exit with code 0
  147. when handling process exit codes
  148. with normal exit status
  149. should not raise error
  150. should set the exit status of the command
  151. with nonzero exit status
  152. should raise ShellCommandFailed
  153. includes output with exceptions from #error!
  154. should set the exit status of the command
  155. with valid exit codes
  156. when exiting with valid code
  157. should not raise error
  158. should set the exit status of the command
  159. when exiting with invalid code
  160. should raise ShellCommandFailed
  161. should set the exit status of the command
  162. with input data
  163. should raise ShellCommandFailed
  164. should set the exit status of the command
  165. when exiting with invalid code 0
  166. should raise ShellCommandFailed
  167. should set the exit status of the command
  168. #invalid!
  169. should raise ShellCommandFailed
  170. when handling the subprocess
  171. with STDOUT and STDERR
  172. should collect all of STDOUT and STDERR
  173. with forking subprocess that does not close stdout and stderr
  174. should not hang
  175. with subprocess that takes longer than timeout
  176. should raise CommandTimeout
  177. with subprocess that exceeds buffersize
  178. should still reads all of the output
  179. with subprocess that returns nothing
  180. should return an empty string for stdout
  181. should return an empty string for stderr
  182. with subprocess that closes stdin and continues writing to stdout
  183. should not hang or lose outupt
  184. with subprocess that closes stdout and continues writing to stderr
  185. should not hang or lose outupt
  186. with subprocess that closes stderr and continues writing to stdout
  187. should not hang or lose outupt
  188. with subprocess that closes STDOUT before closing STDERR
  189. should not hang
  190. should close all pipes
  191. with subprocess reading lots of data from stdin
  192. should not hang
  193. with subprocess writing lots of data to both stdout and stderr
  194. when writing to STDOUT first
  195. should not deadlock
  196. when writing to STDERR first
  197. should not deadlock
  198. with subprocess piping lots of data through stdin, stdout, and stderr
  199. when writing to STDOUT first
  200. should not deadlock
  201. when writing to STDERR first
  202. should not deadlock
  203. when subprocess closes prematurely
  204. with input data
  205. should raise error
  206. when subprocess writes, pauses, then continues writing
  207. should not hang or lose output
  208. when subprocess pauses before writing
  209. should not hang or lose output
  210. when subprocess pauses before reading from stdin
  211. should not hang or lose output
  212. when execution fails
  213. when running under Unix
  214. should recover the error message
  215. with input
  216. should recover the error message
  217. without input data
  218. with subprocess that expects stdin
  219. should close stdin
  220. #format_for_exception
  221. should format exception messages
  222. Failures:
  223. 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
  224. Failure/Error: should eql(parent_locale)
  225. expected: "C"
  226. got: ""
  227. (compared using eql?)
  228. # /usr/lib64/ruby/gems/1.8/gems/rspec-expectations-2.11.3/lib/rspec/expectations/fail_with.rb:33:in `fail_with'
  229. # /usr/lib64/ruby/gems/1.8/gems/rspec-expectations-2.11.3/lib/rspec/expectations/handler.rb:17:in `handle_matcher'
  230. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in `should'
  231. # ./spec/mixlib/shellout_spec.rb:346
  232. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'
  233. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'
  234. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'
  235. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'
  236. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'
  237. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'
  238. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'
  239. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'
  240. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  241. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
  242. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  243. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  244. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
  245. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  246. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  247. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
  248. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  249. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  250. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `map'
  251. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in `run'
  252. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'
  253. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'
  254. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'
  255. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'
  256. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'
  257. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
  258. # /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'
  259. # /usr/bin/rspec:8
  260. Finished in 6.06 seconds
  261. 99 examples, 1 failure
  262. Failed examples:
  263. 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
  264. * ERROR: dev-ruby/mixlib-shellout-1.1.0 failed (test phase):
  265. * rspec failed
  266. *
  267. * Call stack:
  268. * ebuild.sh, line 93: Called src_test
  269. * environment, line 4598: Called ruby-ng_src_test
  270. * environment, line 4277: Called _ruby_each_implementation 'each_ruby_test'
  271. * environment, line 590: Called _ruby_invoke_environment 'ruby18' 'each_ruby_test'
  272. * environment, line 642: Called each_ruby_test
  273. * environment, line 929: Called each_fakegem_test
  274. * environment, line 909: Called ruby-ng_rspec
  275. * environment, line 4241: Called die
  276. * The specific snippet of code:
  277. * ${RUBY} -S rspec ${rspec_params} "$@" || die "rspec failed"
  278. *
  279. * If you need support, post the output of `emerge --info '=dev-ruby/mixlib-shellout-1.1.0'`,
  280. * the complete build log and the output of `emerge -pqv '=dev-ruby/mixlib-shellout-1.1.0'`.
  281. !!! When you file a bug report, please include the following information:
  282. GENTOO_VM= CLASSPATH="/usr/libexec/ccp4/bin:/usr/libexec/ccp4/bin:" JAVA_HOME="/etc/java-config-2/current-system-vm"
  283. JAVACFLAGS="" COMPILER=""
  284. and of course, the output of emerge --info
  285. * The complete build log is located at '/var/log/portage/dev-ruby:mixlib-shellout-1.1.0:20121022-060428.log'.
  286. * For convenience, a symlink to the build log is located at '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/temp/build.log'.
  287. * The ebuild environment file is located at '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/temp/environment'.
  288. * Working directory: '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/ruby18/opscode-mixlib-shellout-5fce9a1'
  289. * S: '/tmp/portage/dev-ruby/mixlib-shellout-1.1.0/work/ruby18/opscode-mixlib-shellout-5fce9a1'
  290. >>> Install mixlib-shellout-1.1.0 into /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/image/ category dev-ruby
  291. * Running install phase for ruby18 ...
  292. * Running install phase for ruby19 ...
  293. * Running install phase for ree18 ...
  294. * Running install phase for all ...
  295. * Running check install phase for ruby18 ...
  296. * Running check install phase for ruby19 ...
  297. * Running check install phase for ree18 ...
  298. >>> Completed installing mixlib-shellout-1.1.0 into /tmp/portage/dev-ruby/mixlib-shellout-1.1.0/image/