The TestInternals#test_large_payload fails with hiredis.
Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
parent
d24a934b45
commit
063b444c77
@ -1,7 +1,7 @@
|
||||
%global gem_name redis
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 4.7.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A Ruby client library for Redis
|
||||
License: MIT
|
||||
URL: https://github.com/redis/redis-rb
|
||||
@ -37,6 +37,14 @@ pushd .%{gem_instdir}
|
||||
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}\"/" \
|
||||
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
|
||||
echo '#!/usr/bin/sh' > bin/build
|
||||
chmod a+x bin/build
|
||||
@ -66,6 +74,9 @@ popd
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%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
|
||||
- Update to 4.7.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user