[DRE-commits] [gem2deb] 07/15: silently helper: don't silence output in debug mode
Antonio Terceiro
terceiro at moszumanska.debian.org
Sat Jan 23 19:37:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit b93dcfa306aad24484d4f44155a87f9ace0255e6
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sat Jan 23 13:07:01 2016 -0200
silently helper: don't silence output in debug mode
---
test/test_helper.rb | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 118a1ec..b55882e 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -141,9 +141,13 @@ class Gem2DebTestCase
end
def self.silently
- silence_stream STDOUT do
- silence_stream STDERR do
- yield
+ if ENV['GEM2DEB_TEST_DEBUG']
+ yield
+ else
+ silence_stream STDOUT do
+ silence_stream STDERR do
+ yield
+ end
end
end
end
--
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