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

ruby-changes:61290

From: Kazuhiro <ko1@a...>
Date: Mon, 18 May 2020 23:19:16 +0900 (JST)
Subject: [ruby-changes:61290] 1f011cccb1 (master): Skip some tests if extracted from tarball (again)

https://git.ruby-lang.org/ruby.git/commit/?id=1f011cccb1

From 1f011cccb16ca9e8ee378cb5a9d4c14459afd68c Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 18 Nov 2019 23:39:57 +0900
Subject: Skip some tests if extracted from tarball (again)

ref 9aa75795f9f438d5c874d8e418c3c7cdd63024fa

diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index b851fa3..3fb13a0 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -34,18 +34,22 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/path.rb#L34
     end
 
     def tracked_files
+      skip "not in git working directory" unless git_root_dir?
       @tracked_files ||= sys_exec(ruby_core? ? "git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler man/bundler*" : "git ls-files -z", :dir => root).split("\x0")
     end
 
     def shipped_files
+      skip "not in git working directory" unless git_root_dir?
       @shipped_files ||= sys_exec(ruby_core? ? "git ls-files -z -- lib/bundler lib/bundler.rb man/bundler* libexec/bundle*" : "git ls-files -z -- lib man exe CHANGELOG.md LICENSE.md README.md bundler.gemspec", :dir => root).split("\x0")
     end
 
     def lib_tracked_files
+      skip "not in git working directory" unless git_root_dir?
       @lib_tracked_files ||= sys_exec(ruby_core? ? "git ls-files -z -- lib/bundler lib/bundler.rb" : "git ls-files -z -- lib", :dir => root).split("\x0")
     end
 
     def man_tracked_files
+      skip "not in git working directory" unless git_root_dir?
       @man_tracked_files ||= sys_exec(ruby_core? ? "git ls-files -z -- man/bundler*" : "git ls-files -z -- man", :dir => root).split("\x0")
     end
 
-- 
cgit v0.10.2


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

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