From 4d6d6a47f182e371ec64edf4895d7f450c58e64d Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 4 Feb 2014 19:00:11 -0700 Subject: run tests, but don't die when they fail It's useful to see the test output during the build, even if the tests fail. --- rubygem-gemnasium-parser.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rubygem-gemnasium-parser.spec b/rubygem-gemnasium-parser.spec index 34153d8..a53063d 100644 --- a/rubygem-gemnasium-parser.spec +++ b/rubygem-gemnasium-parser.spec @@ -15,8 +15,8 @@ BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # Test suite currently fails, but these are the BRs to run it: -#BuildRequires: rubygem(rspec) -#BuildRequires: rubygem(bundler) +BuildRequires: rubygem(rspec) +BuildRequires: rubygem(bundler) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} @@ -61,12 +61,12 @@ cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check -# Test suite has many failures. Upstream is going through a major refactor on -# for rspec tests. See https://github.com/gemnasium/gemnasium-parser/pull/29 -# For now we will comment out the test suite. -#pushd .%%{gem_instdir} -# rspec -Ilib spec -#popd +pushd .%{gem_instdir} + # Test suite has many failures. Upstream is going through a major refactor on + # for rspec tests. See https://github.com/gemnasium/gemnasium-parser/pull/29 + # For now we will make the test suite unconditionally return success. + rspec -Ilib spec || : +popd %files %dir %{gem_instdir} -- cgit