summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb8
1 files changed, 3 insertions, 5 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 8d78d714bcb..9788647bdfb 100644
--- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
+++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
@@ -35,11 +35,9 @@ describe service('mongod') do
it { should be_running }
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