Fix root path depth for negative shallow tests
authorJohn Duarte <john.duarte@puppetlabs.com>
Mon, 12 May 2014 18:02:15 +0000 (11:02 -0700)
committerJohn Duarte <john.duarte@puppetlabs.com>
Sun, 18 May 2014 18:38:19 +0000 (11:38 -0700)
spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_file_path.rb
spec/acceptance/beaker/git/shallow_clone/negative/shallow_clone_http.rb

index 9cebe45..a2565db 100644 (file)
@@ -7,7 +7,7 @@ hosts.each do |host|
   tmpdir = host.tmpdir('vcsrepo')
   step 'setup - create repo' do
     install_package(host, 'git')
-    my_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
+    my_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../../..'))
     scp_to(host, "#{my_root}/acceptance/files/create_git_repo.sh", tmpdir)
     on(host, "cd #{tmpdir} && ./create_git_repo.sh")
   end
index f80239b..a67ec00 100644 (file)
@@ -7,7 +7,7 @@ hosts.each do |host|
   tmpdir = host.tmpdir('vcsrepo')
   step 'setup - create repo' do
     install_package(host, 'git')
-    my_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
+    my_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../../..'))
     scp_to(host, "#{my_root}/acceptance/files/create_git_repo.sh", tmpdir)
     on(host, "cd #{tmpdir} && ./create_git_repo.sh")
   end