From: Eric Hodel Date: 2010-03-26T08:10:02+09:00 Subject: [ruby-core:29014] Re: "rake not found" error on a rubygems test On Mar 16, 2010, at 08:35, Yusuke ENDOH wrote: > Hi Eric Hodel, > > Could you reply to this? > 2010/3/9 Yusuke ENDOH : >> Hi Eric Hodel, >> >> Currently, a test of rubygems reports false error on my environment >> that rake is not installed into PATH. >> Could you commit the patch, or may I? >> >> >> $ make test-all TESTS=test/rubygems/test_gem_commands_uninstall_command.rb >> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb >> ./tool/runruby.rb --extout=.ext -- "./test/runner.rb" >> test/rubygems/test_gem_commands_uninstall_command.rb >> Loaded suite ./test/runner >> Started >> E.. >> Finished in 0.630337 seconds. >> >> 1) Error: >> test_execute_prerelease(TestGemCommandsUninstallCommand): >> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native >> extension. >> >> /home/mame/work/ruby/ruby mkrf_conf.rb >> >> rake RUBYARCHDIR=/tmp/test_rubygems_13065/gemhome/gems/pre-2.b/lib >> RUBYLIBDIR=/tmp/test_rubygems_13065/gemhome/gems/pre-2.b/lib >> sh: rake: command not found >> >> >> Gem files will remain installed in >> /tmp/test_rubygems_13065/gemhome/gems/pre-2.b for inspection. >> Results logged to >> /tmp/test_rubygems_13065/gemhome/gems/pre-2.b/ext/a/gem_make.out >> >> /home/mame/work/ruby/test/rubygems/test_gem_commands_uninstall_command.rb:68:in >> `block in test_execute_prerelease' >> /home/mame/work/ruby/test/rubygems/test_gem_commands_uninstall_command.rb:67:in >> `test_execute_prerelease' >> >> 3 tests, 12 assertions, 0 failures, 1 errors, 0 skips >> make: *** [yes-test-all] Error 1 >> >> >> diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb >> b/test/rubygems/test_gem_commands_uninstall_command.rb >> index cd440f6..6113ed6 100644 >> --- a/test/rubygems/test_gem_commands_uninstall_command.rb >> +++ b/test/rubygems/test_gem_commands_uninstall_command.rb >> @@ -64,8 +64,10 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase >> >> util_setup_gem >> >> - use_ui @ui do >> - @installer.install >> + build_rake_in do >> + use_ui @ui do >> + @installer.install >> + end >> end >> >> @cmd.options[:args] = ["pre"] Sorry, I have been busy. Please commit this patch to ruby, I have commited it to rubygems trunk.