[DRE-commits] [gem2deb] 02/05: always print command lines used to run the tests
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 8f898e7295b242e1f4469d36c9def60394b1a917
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun May 17 09:33:26 2015 -0300
always print command lines used to run the tests
---
debian/changelog | 1 +
lib/gem2deb/test_runner.rb | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 6ef61e7..9d860f0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ gem2deb (0.17) UNRELEASED; urgency=medium
- add -c/--check-dependencies to check for dependencies (as declared in
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
-- Antonio Terceiro <terceiro at debian.org> Sat, 16 May 2015 22:51:18 -0300
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index 16941f9..98a390a 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -15,6 +15,7 @@
require 'rbconfig'
require 'fileutils'
+require 'shellwords'
require 'gem2deb/metadata'
@@ -81,10 +82,9 @@ module Gem2Deb
def run_ruby(*cmd)
rubylib = load_path.join(':')
cmd.unshift(rubyver)
- if $VERBOSE
- print "RUBYLIB=#{rubylib} "
- puts cmd.map { |part| part =~ /['"]/ ? part.inspect : part }.join(' ')
- end
+
+ puts "RUBYLIB=#{rubylib} " + cmd.shelljoin
+
ENV['RUBYLIB'] = (ENV['RUBYLIB'] ? ENV['RUBYLIB'] + ':' : '') + rubylib
if autopkgtest
move_away 'lib'
--
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