Skip to content

Commit

Permalink
Merge pull request #50 from wcooley/wcooley/carefully-clean-sitepp
Browse files Browse the repository at this point in the history
Only clean up site.pp fixture if zero length
  • Loading branch information
hunner committed Feb 14, 2014
2 parents 90d3e57 + 8e4055b commit 462529d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ def fixtures(category)
fixtures("symlinks").each do |source, target|
FileUtils::rm_f(target)
end
FileUtils::rm_f("spec/fixtures/manifests/site.pp")

if File.zero?("spec/fixtures/manifets/site.pp")
FileUtils::rm_f("spec/fixtures/manifests/site.pp")
end

end

desc "Run spec tests in a clean fixtures directory"
Expand Down

0 comments on commit 462529d

Please sign in to comment.