mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-10-26 14:16:07 +01:00
Create temporary directories dynamically
This avoids creating them in /tmp when another tmp dir was chosen.
This commit is contained in:
committed by
Mark Nauwelaerts
parent
da60201ae3
commit
7913920a97
@@ -20,11 +20,12 @@
|
||||
#
|
||||
|
||||
require 'fileutils'
|
||||
require 'tmpdir'
|
||||
|
||||
$tests = %w[main.t bidi.t hg-git.t]
|
||||
$workdir = "#{Dir.home}/.cache/git-remote-hg"
|
||||
$builddir = "/tmp/git-remote-hg-build"
|
||||
$testoutdir = "/tmp/git-remote-hg-tests"
|
||||
$builddir = Dir.mktmpdir("git-remote-hg-build-")
|
||||
$testoutdir = Dir.mktmpdir("git-remote-hg-tests-")
|
||||
|
||||
at_exit {
|
||||
FileUtils.remove_entry($builddir)
|
||||
|
||||
Reference in New Issue
Block a user