diff options
-rw-r--r-- | buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb | 6 |
1 files changed, 4 insertions, 2 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 dfd75e8a236..25900e95196 100644 --- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb +++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb @@ -55,9 +55,11 @@ else end end -if os[:arch] == 'x86_64' and os[:name] != 'amazon' and +if os[:arch] == 'x86_64' and ((os[:name] == 'ubuntu' and os[:release].split('.')[0].to_i > 12) or - (os[:family] == 'redhat' and os[:release].split('.')[0].to_i >= 7)) + (os[:family] == 'redhat' and os[:release].split('.')[0].to_i >= 7) or + (os[:name] == 'debian' and os[:release].split('.')[0].to_i >= 10) or + os[:name] == 'amazon') describe command("install_compass") do its('exit_status') { should eq 0 } end |