1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test: skip default gems

* test/runner.rb: skip default gems to get rid of loading old versions
  before installation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-07-12 03:32:28 +00:00
parent d744433225
commit c3521bf631
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 12 12:32:26 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/runner.rb: skip default gems to get rid of loading old versions
before installation.
Thu Jul 12 11:44:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_new_frozen): since the result object should have

View file

@ -10,6 +10,15 @@ class Gem::TestCase < MiniTest::Unit::TestCase
@@project_dir = File.dirname($LOAD_PATH.last)
end
srcdir = File.dirname(src_testdir)
default_gems = Dir.glob(srcdir + "/{lib,ext}/**/*.gemspec").map {|path| File.basename(path, ".*")}
File.foreach(srcdir + "/defs/default_gems") do |line|
next if /^\s*#/ =~ line
default_gems << line[/^\S+/]
end
default_gems |= (ENV["GEM_SKIP"] || '').split(/:/)
ENV["GEM_SKIP"] = default_gems.join(':')
require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
exit Test::Unit::AutoRunner.run(true, src_testdir)