summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-01-24 13:47:17 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-01-24 13:47:17 -0800
commit998050f3114b71b9a01f8b0bfef01f12ce8c5c58 (patch)
tree68698f2984135b84362e3248a281128080ad3cfe /tasks
parent2865ca316e5b9512ffd8a7d784355e469a115717 (diff)
downloadchef-998050f3114b71b9a01f8b0bfef01f12ce8c5c58.tar.gz
Revert "splice git checkout of chef into external tests"
This reverts commit 2865ca316e5b9512ffd8a7d784355e469a115717.
Diffstat (limited to 'tasks')
-rwxr-xr-xtasks/bin/run_external_test3
1 files changed, 0 insertions, 3 deletions
diff --git a/tasks/bin/run_external_test b/tasks/bin/run_external_test
index 7f0b002525..1925c3e125 100755
--- a/tasks/bin/run_external_test
+++ b/tasks/bin/run_external_test
@@ -11,15 +11,12 @@ include Chef::Mixin::ShellOut
github_repo = ARGV.shift
git_thing = ARGV.shift
-chef_dir = File.expand_path("../..", File.dirname(__FILE__))
-
Dir.mktmpdir("chef-external-test") do |dir|
git_url = "https://github.com/#{github_repo}"
Dir.rmdir dir
shell_out!("git clone #{git_url} #{dir}", live_stream: STDOUT)
Dir.chdir(dir) do
shell_out!("git checkout #{git_thing}", live_stream: STDOUT)
- File.open("Gemfile", "a") { |f| f.write("gem 'chef', path: '#{chef_dir}'") }
Bundler.with_clean_env do
shell_out!("bundle install", live_stream: STDOUT)
shell_out!("bundle exec #{ARGV.join(" ")}", live_stream: STDOUT)