[DRE-commits] [ruby-json] 09/10: Fix loading of tests

Lucas Nussbaum lucas at moszumanska.debian.org
Thu Jul 21 21:28:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

lucas pushed a commit to branch master
in repository ruby-json.

commit 89cb2e2fc341e70f91f42654b07d5d8f3bf83102
Author: Lucas Nussbaum <lucas at debian.org>
Date:   Thu Jul 21 23:14:34 2016 +0200

    Fix loading of tests
---
 debian/ruby-tests.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index ca7c9f3..1598554 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,8 +1,9 @@
+$:.unshift File.expand_path('../../tests', __FILE__)
 inc = $:.map { |d| "-I#{d}" }.join(' ')
 p inc
 ENV['json'] = 'pure'
 puts "Pure version of the tests"
-system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/test_*.rb") or raise
+system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/*_test.rb") or raise
 ENV['json'] = 'ext'
 puts "Ext version of the tests"
-system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/test_*.rb") or raise
+system("#{ENV['RUBY_TEST_BIN']} #{inc} tests/*_test.rb") or raise

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-json.git



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