diff options
Diffstat (limited to 'buildscripts/package_test')
-rw-r--r-- | buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb | 7 |
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 |