[DRE-commits] [gem2deb] 04/07: disable warning when running autopkgtest
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Aug 21 21:11:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch autopkgtest
in repository gem2deb.
commit c7434a703a422f3319ed4589533e2e0ee34689b4
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Aug 21 21:06:50 2014 +0200
disable warning when running autopkgtest
---
lib/gem2deb/test_runner.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index ab8db5e..08db54c 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -67,6 +67,8 @@ module Gem2Deb
def run_ruby(*cmd)
rubylib = load_path.join(':')
+ # disable warning when running autopkgtest
+ cmd.unshift("-W0") if autopkgtest
cmd.unshift(rubyver)
if $VERBOSE
print "RUBYLIB=#{rubylib} "
@@ -108,7 +110,10 @@ module Gem2Deb
def self.detect
subclasses.map(&:new).find do |runner|
runner.activate?
- end || bail("E: this tool must be run from inside a Debian source package.")
+ end
+ end
+ def self.detect!
+ detect || bail("E: this tool must be run from inside a Debian source package.")
end
def self.bail(msg)
puts msg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list