ruby-changes:58830
From: Kazuhiro <ko1@a...>
Date: Tue, 19 Nov 2019 00:39:42 +0900 (JST)
Subject: [ruby-changes:58830] 9aa75795f9 (master): Skip some tests if extracted from tarball
https://git.ruby-lang.org/ruby.git/commit/?id=9aa75795f9 From 9aa75795f9f438d5c874d8e418c3c7cdd63024fa 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 diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index cc5aebb..e778809 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -30,14 +30,23 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/path.rb#L30 end def tracked_files + if root != `git rev-parse --show-toplevel` + skip 'not in git working directory' + end @tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler man/bundler*` : `git ls-files -z` end def shipped_files + if root != `git rev-parse --show-toplevel` + skip 'not in git working directory' + end @shipped_files ||= 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` end def lib_tracked_files + if root != `git rev-parse --show-toplevel` + skip 'not in git working directory' + end @lib_tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib` end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/