[packages/ruby-redis] configure port for testing
glen
glen at pld-linux.org
Thu Jun 16 20:09:36 CEST 2016
commit 5ef2e4ecdba52067bd465149fcf7cb9f4ffaeeac
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jun 16 21:02:46 2016 +0300
configure port for testing
ruby-redis.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ruby-redis.spec b/ruby-redis.spec
index 89284d4..f0c45ed 100644
--- a/ruby-redis.spec
+++ b/ruby-redis.spec
@@ -43,14 +43,19 @@ Documentation for %{name}.
%patch0 -p1
#%patch1 -p1
+# Install our test.conf file. Upstream dynamically generates this with Rake.
+# To avoid using rake, we use a static file.
+cp -p %{SOURCE1} test/test.conf
+
%build
# write .gemspec
%__gem_helper spec
%if %{with tests}
-# Install our test.conf file. Upstream dynamically generates this with Rake.
-# To avoid using rake, we use a static file.
-cp -p %{SOURCE1} test/test.conf
+port=6381
+
+sed -e "/^PORT/ s/6381/$port/" test/helper.rb
+sed -e "/^port/ s/6381/$port/" test/test.conf
## Start a testing redis server instance
/usr/sbin/redis-server test/test.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-redis.git/commitdiff/a22d3d0f8b6193deddb89517579fa75d021d3d04
More information about the pld-cvs-commit
mailing list