[DRE-commits] [gem2deb] 09/15: Tests: simplify debugging

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 349ad3d27bbb773960156fa31b48509bcec4f0be
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jan 23 13:13:22 2016 -0200

    Tests: simplify debugging
---
 Rakefile            | 2 +-
 test/test_helper.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Rakefile b/Rakefile
index f20b1d2..fc6ae86 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,7 +25,7 @@ end
 
 desc "Run tests in debug mode (e.g. don't delete temporary files)"
 task 'test:debug' do
-  ENV['GEM2DEB_TEST_DEBUG'] = 'yes'
+  ENV['DEBUG'] = 'yes'
   Rake::Task['test'].invoke
 end
 
diff --git a/test/test_helper.rb b/test/test_helper.rb
index b55882e..b3c0e38 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -61,7 +61,7 @@ class Gem2DebTestCase
     def setup_cleanup
       unless $__gem2deb_tests_cleanup_installed
         at_exit do
-          if ENV['GEM2DEB_TEST_DEBUG']
+          if ENV['DEBUG']
             puts
             puts "======================================================================="
             puts "Temporary test files left in #{Gem2DebTestCase::TMP_DIR} for inspection!"
@@ -141,7 +141,7 @@ class Gem2DebTestCase
   end
 
   def self.silently
-    if ENV['GEM2DEB_TEST_DEBUG']
+    if ENV['DEBUG']
       yield
     else
       silence_stream STDOUT do

-- 
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