diff options
author | John Duarte <john.duarte@puppetlabs.com> | 2014-06-14 11:57:07 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-06-16 13:55:53 -0700 |
commit | e6a561125b6477051c339d5dfce909e4318f504c (patch) | |
tree | 697084e56663be03f8739a94fabb73393d61564a /spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb | |
parent | 36969f9a2fe8952f162ef1dea9cfa95ed16c1907 (diff) |
Accomodate ubuntu-10 package for git in beaker tests
Add conditional to install `git-core` if the platform under test
is ubuntu-10. The `git` package is not available for this platform.
Diffstat (limited to 'spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb')
-rw-r--r-- | spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb index ece10a5..5b789df 100644 --- a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb +++ b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb @@ -6,7 +6,11 @@ repo_name = 'testrepo_bare.git' hosts.each do |host| tmpdir = host.tmpdir('vcsrepo') step 'setup' do - install_package(host, 'git') + git_pkg = 'git' + if host['platform'] =~ /ubuntu-10/ + git_pkg = 'git-core' + end + install_package(host, git_pkg) end teardown do |