[前][次][番号順一覧][スレッド一覧]

ruby-changes:58472

From: Nobuyoshi <ko1@a...>
Date: Mon, 28 Oct 2019 19:15:18 +0900 (JST)
Subject: [ruby-changes:58472] 48f982aba7 (master): test-bundled-gems.rb: fixed for out-of-place build

https://git.ruby-lang.org/ruby.git/commit/?id=48f982aba7

From 48f982aba7ab5b23af168d3c108e71e3a27c0648 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 28 Oct 2019 19:14:38 +0900
Subject: test-bundled-gems.rb: fixed for out-of-place build


diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index 9035e20..02e1812 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -3,12 +3,13 @@ require 'rbconfig' https://github.com/ruby/ruby/blob/trunk/tool/test-bundled-gems.rb#L3
 allowed_failures = ENV['TEST_BUNDLED_GEMS_ALLOW_FAILURES'] || ''
 allowed_failures = allowed_failures.split(',').reject(&:empty?)
 
+gem_dir = File.expand_path('../../gems', __FILE__)
 exit_code = 0
-File.foreach('gems/bundled_gems') do |line|
+File.foreach("#{gem_dir}/bundled_gems") do |line|
   gem = line.split.first
   puts "\nTesting the #{gem} gem"
 
-  gem_src_dir = File.expand_path("../../gems/src/#{gem}", __FILE__ )
+  gem_src_dir = File.expand_path("#{gem_dir}/src/#{gem}", __FILE__)
   test_command = "#{ARGV.join(' ')} -C #{gem_src_dir} -Ilib ../../../.bundle/bin/rake"
   puts test_command
   system test_command
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]