Bug #6604

trunkでtest-all が完走しない (-j 使用時のみ)

Added by Motohiro KOSAKI over 2 years ago. Updated over 2 years ago.

[ruby-dev:45765]
Status:Closed
Priority:Normal
Assignee:Shota Fukumori
ruby -v:ruby 2.0.0dev (2012-06-18 trunk 36125) [x86_64-linux] Backport:

Description

make test-all TESTS="-j8 -v -q" すると、LinuxでもMacでも以下のエラーが出て完走しません

TestGemCommandsHelpCommand#test_gem_no_args_shows_help = 0.00 s = .
TestGemCommandsHelpCommand#test_gem_help_commands = 0.04 s = E
TestGemCommandsHelpCommand#test_gem_help_platforms = 0.00 s = .
TestGemCommandsHelpCommand#test_gem_help_bad = 0.00 s = .
/Users/kosaki/ruby/git/lib/test/unit.rb:534:in load': undefined class/module Gem::Installer:: (ArgumentError)
from /Users/kosaki/ruby/git/lib/test/unit.rb:534:in
block in run_parallel'
from /Users/kosaki/ruby/git/lib/test/unit.rb:503:in each'
from /Users/kosaki/ruby/git/lib/test/unit.rb:503:in
_run_parallel'
from /Users/kosaki/ruby/git/lib/test/unit.rb:651:in _run_suites'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:792:in
_run_anything'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:981:in run_tests'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:968:in
block in _run'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:967:in each'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:967:in
run'
from /Users/kosaki/ruby/git/lib/minitest/unit.rb:956:in run'
from /Users/kosaki/ruby/git/lib/test/unit.rb:21:in
run'
from /Users/kosaki/ruby/git/lib/test/unit.rb:765:in run'
from /Users/kosaki/ruby/git/lib/test/unit.rb:818:in
run'
from /Users/kosaki/ruby/git/lib/test/unit.rb:822:in run'
from ../test/runner.rb:15:in
'
make: *** [yes-test-all] Error 1
[1] 8830 exit 2 make check OPTS="-v -q" TESTS="-v -q -j8"

Associated revisions

Revision 36247
Added by Yui NARUSE over 2 years ago

  • lib/test/unit/parallel.rb: workaround fix for rubygems. RubyGems can't find rake if the source directory is not equal to the directory which is running the test. [Bug #6604]

Revision 36247
Added by Yui NARUSE over 2 years ago

  • lib/test/unit/parallel.rb: workaround fix for rubygems. RubyGems can't find rake if the source directory is not equal to the directory which is running the test. [Bug #6604]

History

#1 Updated by Shota Fukumori over 2 years ago

  • Status changed from Assigned to Feedback

ruby 2.0.0dev (2012-06-25 trunk 36211) [x86_64-darwin11.3.0] で再現しませんでした。

#2 Updated by Motohiro KOSAKI over 2 years ago

  • Status changed from Feedback to Assigned

ruby 2.0.0dev (2012-06-25 trunk 36211) [x86_64-darwin11.3.0] で再現しませんでした。

エスパーではないので、この文章から求めているフィードバックを読み取ることはできません。
ruby 2.0.0dev (2012-06-25 trunk 36213) [x86_64-darwin11.4.0] では再現します。

#3 Updated by Yui NARUSE over 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36247.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/test/unit/parallel.rb: workaround fix for rubygems. RubyGems can't find rake if the source directory is not equal to the directory which is running the test. [Bug #6604]

Also available in: Atom PDF