Skip to content

Commit

Permalink
- Switched to using tmpdir for INLINEDIR to avoid failures in CI envi…
Browse files Browse the repository at this point in the history
…ronments w/o homedirs

[git-p4: depot-paths = "//src/image_science/dev/": change = 7388]
  • Loading branch information
zenspider committed Apr 25, 2012
1 parent 666c1a6 commit 2321a9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_image_science.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dir = File.expand_path "~/.ruby_inline"
if test ?d, dir then
require 'tmpdir'
dir = Dir.mktmpdir "image_science."
ENV['INLINEDIR'] = dir
MiniTest::Unit.after_tests do
require 'fileutils'
puts "nuking #{dir}"
# force removal, Windoze is bitching at me, something to hunt later...
FileUtils.rm_r dir, :force => true
FileUtils.rm_rf dir
end

require 'rubygems'
Expand Down

0 comments on commit 2321a9d

Please sign in to comment.