Skip to content

Commit

Permalink
Skip some tests if extracted from tarball (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed May 18, 2020
1 parent 185f49f commit 1f011cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/bundler/support/path.rb
Expand Up @@ -34,18 +34,22 @@ def spec_dir
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

Expand Down

0 comments on commit 1f011cc

Please sign in to comment.