summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2019-06-26 16:22:47 -0800
committerRyan Davis <ryand@zenspider.com>2019-06-26 16:22:47 -0800
commitfc7e896f600d9a8b521d3ff52f5e52f51cd13fd1 (patch)
tree13a29e7e7412f73a1b15cbdfbae9b3a8aae066c1 /lib
parent2570f06769101255e4b502b979ca04883905294d (diff)
downloadhoe-fc7e896f600d9a8b521d3ff52f5e52f51cd13fd1.tar.gz
oops. Needed to keep using FILTER for make_test_cmd (for others, not minitest).
[git-p4: depot-paths = "//src/hoe/dev/": change = 12155]
Diffstat (limited to 'lib')
-rw-r--r--lib/hoe/test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/hoe/test.rb b/lib/hoe/test.rb
index 78573c5..a0432c9 100644
--- a/lib/hoe/test.rb
+++ b/lib/hoe/test.rb
@@ -174,7 +174,11 @@ module Hoe::Test
tests.insert 1, test_prelude if test_prelude
- "#{Hoe::RUBY_FLAGS} -e '#{tests.join("; ")}' -- #{FILTER}"
+ filter = (ENV["FILTER"] || ENV["TESTOPTS"] || "").dup
+ filter << " -n #{ENV["N"]}" if ENV["N"]
+ filter << " -e #{ENV["X"]}" if ENV["X"]
+
+ "#{Hoe::RUBY_FLAGS} -e '#{tests.join("; ")}' -- #{filter}"
end
##