[DRE-commits] [SCM] ruby-moneta.git branch, master, updated. debian/0.6.0-3-3-ge2c1098

Tollef Fog Heen tfheen at debian.org
Sat Jun 30 17:52:32 UTC 2012


The following commit has been merged in the master branch:
commit 09b1b0c0f36af3c3df1a68dc7de52acc71b63562
Author: Tollef Fog Heen <tfheen at debian.org>
Date:   Sat Jun 30 16:15:47 2012 +0200

    Manually run memcached before starting tests.

diff --git a/debian/changelog b/debian/changelog
index 8ee7ab8..3f14a81 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 ruby-moneta (0.6.0-4) UNRELEASED; urgency=low
 
   * Add build-dep on ruby-memcache-client.  Fixes: #674318
+  * Manually run memcached before starting tests.
 
  -- Tollef Fog Heen <tfheen at debian.org>  Sat, 30 Jun 2012 16:05:08 +0200
 
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index bb7f4ca..bf8a155 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,3 +1,7 @@
-require 'rspec/autorun'
+at_exit {
+  system("kill $(cat pid/memcached.pid)")
+}
 
+require 'rspec/autorun'
+system("install -o nobody -d pid ; memcached -d -u nobody -l localhost -P $(pwd)/pid/memcached.pid")
 Dir['spec/*_spec.rb'].each { |f| require f }

-- 
ruby-moneta.git



More information about the Pkg-ruby-extras-commits mailing list