The TestInternals#test_large_payload fails with hiredis.

Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
cherry530 2023-01-12 16:13:06 +08:00
parent d24a934b45
commit 063b444c77

View File

@ -1,7 +1,7 @@
%global gem_name redis %global gem_name redis
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 4.7.0 Version: 4.7.0
Release: 1 Release: 2
Summary: A Ruby client library for Redis Summary: A Ruby client library for Redis
License: MIT License: MIT
URL: https://github.com/redis/redis-rb URL: https://github.com/redis/redis-rb
@ -37,6 +37,14 @@ pushd .%{gem_instdir}
cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} . cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} .
sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \ sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \
makefile makefile
# The TestInternals#test_large_payload fails with Hiredis.
# https://github.com/redis/redis-rb/issues/1117
sed -i \
-e '/def test_large_payload/i\ driver(:ruby) do' \
-e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \
test/internals_test.rb
mkdir bin mkdir bin
echo '#!/usr/bin/sh' > bin/build echo '#!/usr/bin/sh' > bin/build
chmod a+x bin/build chmod a+x bin/build
@ -66,6 +74,9 @@ popd
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Thu Jan 12 2023 xu_ping <xuping33@h-partners.com> - 4.7.0-2
- The TestInternals#test_large_payload fails with hiredis.
* Tue Aug 9 2022 liyanan <liyanan32@h-partners.com> - 4.7.0-1 * Tue Aug 9 2022 liyanan <liyanan32@h-partners.com> - 4.7.0-1
- Update to 4.7.0 - Update to 4.7.0