[DRE-commits] [gem2deb] 03/05: gem2deb-test-runner: read options $GEM2DEB_TEST_RUNNER
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun May 17 13:00:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 3074f12460dffe3c117de16c1b7b1f6a540711c6
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun May 17 09:49:42 2015 -0300
gem2deb-test-runner: read options $GEM2DEB_TEST_RUNNER
---
bin/gem2deb-test-runner | 14 ++++++++++++++
debian/changelog | 2 ++
2 files changed, 16 insertions(+)
diff --git a/bin/gem2deb-test-runner b/bin/gem2deb-test-runner
index 2859ef4..716df06 100755
--- a/bin/gem2deb-test-runner
+++ b/bin/gem2deb-test-runner
@@ -18,11 +18,17 @@
require 'rbconfig'
require 'fileutils'
require 'optparse'
+require 'shellwords'
require 'gem2deb/test_runner'
options = {}
+if ENV['GEM2DEB_TEST_RUNNER']
+ opts = Shellwords.split(ENV['GEM2DEB_TEST_RUNNER'])
+ ARGV.unshift(*opts)
+end
+
optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} [OPTIONS]"
@@ -88,6 +94,14 @@ Before running the tests, checks whether all dependencies of the package, as
declared in the Rubygems metadata, are present. Makes the program exit with a
non-zero status code (i.e. fails) if they aren't.
+=head1 ENVIRONMENT
+
+=over
+
+=item GEM2DEB_TEST_RUNNER
+
+Used to pass options to gem2deb-test-runner via the environment.
+
=back
=head1 SEE ALSO
diff --git a/debian/changelog b/debian/changelog
index 9d860f0..d64e6e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ gem2deb (0.17) UNRELEASED; urgency=medium
the Rubygems metadata, not as declared in debian/control) before running
the tests (Closes: #785120, #785120)
- always print command lines used to run the tests
+ - add support for passing options via the GEM2DEB_TEST_RUNNER environment
+ variable
-- Antonio Terceiro <terceiro at debian.org> Sat, 16 May 2015 22:51:18 -0300
--
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