summaryrefslogtreecommitdiff
path: root/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb')
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
index a67ec00..4c43be1 100644
--- a/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb
@@ -4,6 +4,7 @@ test_name 'C3479 - shallow clone repo minimal depth = 1 (http protocol)'
repo_name = 'testrepo_shallow_clone'
hosts.each do |host|
+ ruby = '/opt/puppet/bin/ruby' if host.is_pe? || 'ruby'
tmpdir = host.tmpdir('vcsrepo')
step 'setup - create repo' do
install_package(host, 'git')
@@ -20,12 +21,12 @@ hosts.each do |host|
server.start
EOF
create_remote_file(host, '/tmp/http_daemon.rb', http_daemon)
- on(host, "ruby /tmp/http_daemon.rb")
+ on(host, "#{ruby} /tmp/http_daemon.rb")
end
teardown do
on(host, "rm -fr #{tmpdir}")
- on(host, 'ps ax | grep "ruby /tmp/http_daemon.rb" | grep -v grep | awk \'{print "kill -9 " $1}\' | sh')
+ on(host, 'ps ax | grep "#{ruby} /tmp/http_daemon.rb" | grep -v grep | awk \'{print "kill -9 " $1}\' | sh')
end
step 'shallow clone repo with puppet' do