diff options
author | Zakhar Kleyman <zakhar.kleyman@mongodb.com> | 2018-01-29 11:30:10 -0500 |
---|---|---|
committer | Zakhar Kleyman <zakhar.kleyman@mongodb.com> | 2018-01-29 12:49:49 -0500 |
commit | 6b1dec440cf18fdfa9f7aa285f6f3b4fcfd1fd86 (patch) | |
tree | 5c9eabe6745be049c8be260685ead8ed043978c3 /buildscripts/package_test | |
parent | 3220c461b454ce8a8df56a3ca0c72bad79806580 (diff) | |
download | mongo-6b1dec440cf18fdfa9f7aa285f6f3b4fcfd1fd86.tar.gz |
SERVER-32932 improve sles12 package testing
Diffstat (limited to 'buildscripts/package_test')
-rw-r--r-- | buildscripts/package_test/recipes/install_mongodb.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb index 0d6c2e7b79f..34134dc9bfa 100644 --- a/buildscripts/package_test/recipes/install_mongodb.rb +++ b/buildscripts/package_test/recipes/install_mongodb.rb @@ -103,6 +103,16 @@ if platform_family? 'suse' EOD end + %w( + SLES12-Pool + SLES12-Updates + ).each do |repo| + execute "add #{repo}" do + command "zypper addrepo --check --refresh --name \"#{repo}\" http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-SERVER/12/x86_64/product?credentials=SMT-http_smt-ec2_susecloud_net 'SMT-http_smt-ec2_susecloud_net:#{repo}'" + not_if "zypper lr | grep #{repo}" + end + end + execute 'install mongod' do command 'zypper -n install `find . -name "*server*.rpm"`' cwd homedir |