summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2015-09-15 17:20:26 +0200
committeranonym <anonym@riseup.net>2015-09-15 17:20:26 +0200
commitc78e6e2a82fb4ba4d898c2a5f4e38f526724cd66 (patch)
treefb8f49da69394d927916bbd933065ef5c3aacd32
parent9a265941cc9a00945aad357620354df02c5fe1e4 (diff)
Create TMPDIR with mkdir_p.
So any missing parent directories are created too.
-rw-r--r--features/support/hooks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb
index 2d41db8..3517dc7 100644
--- a/features/support/hooks.rb
+++ b/features/support/hooks.rb
@@ -17,7 +17,7 @@ AfterConfiguration do |config|
FileUtils.chmod(0755, $config["TMPDIR"])
else
begin
- Dir.mkdir($config["TMPDIR"])
+ FileUtils.mkdir_p($config["TMPDIR"])
rescue Errno::EACCES => e
raise "Cannot create temporary directory: #{e.to_s}"
end