[DRE-commits] [gem2deb] 03/08: fix path for the test runner

Cédric Boutillier boutil at moszumanska.debian.org
Mon Aug 11 13:28:30 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 f5b29c957dc474e82d2905e99af1a621df980dc2
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Jul 29 22:30:51 2014 +0200

    fix path for the test runner
---
 lib/gem2deb/dh_ruby.rb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/gem2deb/dh_ruby.rb b/lib/gem2deb/dh_ruby.rb
index 94570a9..c505a33 100644
--- a/lib/gem2deb/dh_ruby.rb
+++ b/lib/gem2deb/dh_ruby.rb
@@ -58,7 +58,14 @@ module Gem2Deb
       # puts "  Leaving dh_ruby --test" if @verbose
     end
 
-    TEST_RUNNER = File.expand_path(File.join(File.dirname(__FILE__),'test_runner.rb'))
+    #TEST_RUNNER = File.expand_path(File.join(File.dirname(__FILE__),'test_runner.rb'))
+    if File.exist? File.expand_path(File.join(File.dirname(__FILE__),'../../../bin','test_runner.rb'))
+      TEST_RUNNER = File.expand_path(File.join(File.dirname(__FILE__),'../../../bin','gem2deb-test-runner'))
+      puts "yes #{TEST_RUNNER}"
+    else
+      TEST_RUNNER = "/usr/bin/gem2deb-test-runner"
+      puts "no #{TEST_RUNNER}"
+    end
 
     def install(argv)
       puts "  Entering dh_ruby --install" if @verbose

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