[DRE-commits] [ruby-bunny] 01/01: debian/ruby-tests.rake: wait for rabbitmq-server before starting the tests
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Dec 11 16:20:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-bunny.
commit 83785d345dd1c0cc2ba9dba0c5ef1c09be4f8463
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Dec 11 13:52:47 2016 -0200
debian/ruby-tests.rake: wait for rabbitmq-server before starting the tests
Closes: #847741
---
debian/changelog | 7 +++++++
debian/ruby-tests.rake | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index df33b18..babfd03 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-bunny (2.6.1-2) unstable; urgency=medium
+
+ * debian/ruby-tests.rake: wait for rabbitmq-server to be online before
+ starting the tests (Closes: #847741)
+
+ -- Antonio Terceiro <terceiro at debian.org> Sun, 11 Dec 2016 14:10:15 -0200
+
ruby-bunny (2.6.1-1) unstable; urgency=medium
* Team upload
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 08a1680..56d438a 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -38,7 +38,10 @@ def start_rabbitmq_server
fork do
exec('/usr/lib/rabbitmq/bin/rabbitmq-server')
end
- sleep 2
+
+ pidfile = File.join($tmpdir, 'mnesia', 'bunny.pid')
+ system('/usr/lib/rabbitmq/bin/rabbitmqctl', 'wait', pidfile)
+
system('./bin/ci/before_build')
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bunny.git
More information about the Pkg-ruby-extras-commits
mailing list