!9 修复TestInternals#test_large_payload用例失败导致的编译失败
From: @cherry530 Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
44480e6e42
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user