summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2019-12-29 17:49:21 -0800
committerRyan Davis <ryand@zenspider.com>2019-12-29 17:49:21 -0800
commit02bea63b7a3acd47f77a13a2a0b2826394319ddd (patch)
tree309144d8ed2d528c78fda6dc9fcedb5ac7d47f85 /lib
parentb49def9a1f95e88b864107bb32442e55e615cda6 (diff)
downloadhoe-02bea63b7a3acd47f77a13a2a0b2826394319ddd.tar.gz
- Fixed shadowed variable and json output for minitest's test:isolated task.
[git-p4: depot-paths = "//src/hoe/dev/": change = 12485]
Diffstat (limited to 'lib')
-rw-r--r--lib/minitest/test_task.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/minitest/test_task.rb b/lib/minitest/test_task.rb
index 5087011..5ead3da 100644
--- a/lib/minitest/test_task.rb
+++ b/lib/minitest/test_task.rb
@@ -175,7 +175,7 @@ module Minitest # :nodoc:
# 3 seems to be the magic number... (tho not by that much)
bad, good, n = {}, [], (ENV.delete("K") || 3).to_i
- path = ENV.delete("F")
+ file = ENV.delete("F")
times = {}
tt0 = Time.now
@@ -199,10 +199,10 @@ module Minitest # :nodoc:
puts "done"
puts "Ran in %.2f seconds" % [ Time.now - tt0 ]
- if path then
+ if file then
require "json"
- File.open path, "w" do |io|
- io.write JSON.pretty_generate times
+ File.open file, "w" do |io|
+ io.puts JSON.pretty_generate times
end
end