Skip to content
Snippets Groups Projects
Commit dbc05d4a authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Don't use "rm" for cleaning tmp/builds

If this directory were to be empty this would result in warnings being
printed to STDERR, cluttering spec output. Doing this in Ruby fixes this
problem (and also removes the need for shell alltogether).
parent c867c225
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,8 +10,10 @@ RSpec.configure do |config|
end
 
config.after(:suite) do
Dir.chdir(builds_path) do
`ls | grep -v .gitkeep | xargs rm -r`
Dir[File.join(builds_path, '*')].each do |path|
next if File.basename(path) == '.gitkeep'
FileUtils.rm_rf(path)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment