Remove log directory in test postprocessing
The "log" is directory. So it is necessary to use `FileUtils.rm_rf`.
This commit is contained in:
parent
05ffe4b328
commit
968499c740
|
@ -47,7 +47,7 @@ namespace :test do
|
|||
status = $?.to_i
|
||||
ensure
|
||||
Process.kill("KILL", pid) if pid
|
||||
FileUtils.rm_f("log")
|
||||
FileUtils.rm_rf("log")
|
||||
end
|
||||
|
||||
exit status
|
||||
|
|
Loading…
Reference in New Issue