[DRE-commits] [SCM] gem2deb.git branch, master, updated. bfe5651b9666906cb6004b8befa940a67f623fd0

Lucas Nussbaum lucas at lucas-nussbaum.net
Sun Apr 3 10:25:20 UTC 2011


The following commit has been merged in the master branch:
commit 6ebb29cd947f86987e899a4131f8c96fe8a89b5e
Author: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date:   Sun Apr 3 11:23:20 2011 +0200

    Export RUBY_TEST_VERSION and RUBY_TEST_BIN environment variables when running tests.

diff --git a/debian/changelog b/debian/changelog
index 5552fe1..a3eef87 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 gem2deb (0.2.1) UNRELEASED; urgency=low
 
-  * 
+  * Export RUBY_TEST_VERSION and RUBY_TEST_BIN environment variables
+    when running tests.
 
- -- Lucas Nussbaum <lucas at lucas-nussbaum.net>  Fri, 25 Mar 2011 10:03:35 +0100
+ -- Lucas Nussbaum <lucas at lucas-nussbaum.net>  Sun, 03 Apr 2011 11:22:08 +0200
 
 gem2deb (0.2.0) unstable; urgency=low
 
diff --git a/lib/gem2deb/dh_ruby.rb b/lib/gem2deb/dh_ruby.rb
index b542d5c..7d6cf82 100644
--- a/lib/gem2deb/dh_ruby.rb
+++ b/lib/gem2deb/dh_ruby.rb
@@ -201,6 +201,8 @@ module Gem2Deb
         system(cmd)
       elsif File::exists?('debian/ruby-tests.rb')
         puts "Running tests for #{rubyver} using debian/ruby-tests.rb..."
+        ENV['RUBY_TEST_VERSION'] = rubyver
+        ENV['RUBY_TEST_BIN'] = SUPPORTED_RUBY_VERSIONS[rubyver]
         cmd = "#{SUPPORTED_RUBY_VERSIONS[rubyver]} -Ilib debian/ruby-tests.rb"
         puts(cmd) if $VERBOSE
         system(cmd)

-- 
gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list