summaryrefslogtreecommitdiff
path: root/buildscripts/package_test
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2018-08-13 17:06:43 -0400
committerMathew Robinson <chasinglogic@gmail.com>2018-08-20 10:51:27 -0400
commit866e0531147b023344709653acbf556d5b631d09 (patch)
tree7af1367430df745f1e3ca3eecc054bb65ee3ee80 /buildscripts/package_test
parent388da0d9181a638160a5b2cfe6b8c8aa8e54314f (diff)
downloadmongo-866e0531147b023344709653acbf556d5b631d09.tar.gz
SERVER-36622 Allow newer versions of RHEL and Ubuntu to succeed for install_compass
Diffstat (limited to 'buildscripts/package_test')
-rw-r--r--buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
index 739cc951064..f927a58fe94 100644
--- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
+++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
@@ -55,10 +55,9 @@ else
end
end
-if os[:arch] == 'x86_64' and
- (os[:name] == 'ubuntu' and
- (os[:release][0...5] == '14.04' or os[:release][0...5] == '16.04')) or
- (os[:family] == 'redhat' and os[:release][0] == '7')
+if os[:arch] == 'x86_64' and os[:name] != 'amazon' and
+ ((os[:name] == 'ubuntu' and os[:release].split('.')[0].to_i > 12) or
+ (os[:family] == 'redhat' and os[:release].split('.')[0].to_i >= 7))
describe command("install_compass") do
its('exit_status') { should eq 0 }
end