Fix the test the right way

epel9
Josef Stribny 11 years ago
parent fa797abfc8
commit 5ce23700e7

@ -5,7 +5,7 @@
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.7.2 Version: 2.7.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: High performance memcached client for Ruby Summary: High performance memcached client for Ruby
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
@ -59,10 +59,8 @@ pushd .%{gem_instdir}
sed -i -e '3d' test/test_active_support.rb sed -i -e '3d' test/test_active_support.rb
# There are 2 failures and 1 error regarding SALS # There are 2 failures and 1 error regarding SALS
# https://github.com/mperham/dalli/issues/439 # https://github.com/mperham/dalli/issues/439
# Most of the times the grep does not work because of the
# `This server is not built with SASL support.` error.
ruby -Ilib:test -e "Dir.glob('./test/test_*.rb').sort.each{ |x| require x }" \ ruby -Ilib:test -e "Dir.glob('./test/test_*.rb').sort.each{ |x| require x }" \
| grep '121 runs, 15461 assertions, 2 failures, 1 errors, 0 skips' || exit 0 | grep '.*121 runs, 15461 assertions, 2 failures, 1 errors, 0 skips.*'
popd popd
%endif %endif
@ -85,6 +83,9 @@ popd
%changelog %changelog
* Mon Jun 16 2014 Josef Stribny <jstribny@redhat.com> - 2.7.2-2
- Fix the test the right way
* Mon Jun 16 2014 Josef Stribny <jstribny@redhat.com> - 2.7.2-1 * Mon Jun 16 2014 Josef Stribny <jstribny@redhat.com> - 2.7.2-1
- Update to dalli 2.7.2 - Update to dalli 2.7.2

Loading…
Cancel
Save