[SCM] branch, master, updated. debian/0.45-1-12-g5fc88d1

Harlan Lieberman-Berg H.LiebermanBerg at gmail.com
Fri Oct 19 23:17:01 UTC 2012


The following commit has been merged in the master branch:
commit 58005700e920cbae53e25066ce86b11d473bad95
Author: Harlan Lieberman-Berg <H.LiebermanBerg at gmail.com>
Date:   Fri Oct 19 19:18:31 2012 -0400

    Kill mongod process after it's used for testing.

diff --git a/debian/control b/debian/control
index 377899d..05deb13 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,8 @@ Build-Depends: debhelper (>= 9.20120312),
  libtie-ixhash-perl,
  libtry-tiny-perl,
  libtest-warn-perl,
- mongodb-server
+ mongodb-server,
+ procps
 Standards-Version: 3.9.3
 Homepage: http://search.cpan.org/dist/MongoDB/
 Vcs-Git: git://git.debian.org/pkg-perl/packages/libmongodb-perl.git
diff --git a/debian/rules b/debian/rules
index eb4c9ac..6cdaa84 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,17 @@
 #!/usr/bin/make -f
 
 BUILDHOME = $(CURDIR)/debian/build
+PIDFILE = $(BUILDHOME)/mongod.pid
 
 %:
 	dh $@
 
 override_dh_auto_test:
 	mkdir -p $(BUILDHOME)
-	mongod --dbpath $(BUILDHOME) --noprealloc --nojournal --quiet >/dev/null 2>&1 &
+	mongod --dbpath $(BUILDHOME) --noprealloc --nojournal --quiet --fork --logpath $(BUILDHOME)/mongod.log --pidfilepath $(PIDFILE)
 	sleep 10
 	dh_auto_test
+	/bin/kill `cat $(PIDFILE)`
 
 override_dh_clean:
 	dh_clean

-- 




More information about the Pkg-perl-cvs-commits mailing list