Commit 9c506020 by Will Daly

Fixed bug in tests.rake in which rm would be called with no args.

parent afa6f485
...@@ -48,7 +48,7 @@ task :clean_test_files do ...@@ -48,7 +48,7 @@ task :clean_test_files do
# Delete all files in the reports directory, while preserving # Delete all files in the reports directory, while preserving
# the directory structure. # the directory structure.
sh("find #{REPORT_DIR} -type f -print0 | xargs -0 rm") sh("find #{REPORT_DIR} -type f -print0 | xargs --no-run-if-empty -0 rm")
# Reset the test fixtures # Reset the test fixtures
sh("git clean -fqdx test_root") sh("git clean -fqdx test_root")
...@@ -138,6 +138,6 @@ task :coverage => :report_dirs do ...@@ -138,6 +138,6 @@ task :coverage => :report_dirs do
sh("coverage html --rcfile=#{dir}/.coveragerc") sh("coverage html --rcfile=#{dir}/.coveragerc")
sh("coverage xml -o #{report_dir}/coverage.xml --rcfile=#{dir}/.coveragerc") sh("coverage xml -o #{report_dir}/coverage.xml --rcfile=#{dir}/.coveragerc")
sh("diff-cover #{report_dir}/coverage.xml --html-report #{report_dir}/diff_cover.html --git-branch master...HEAD") sh("diff-cover #{report_dir}/coverage.xml --html-report #{report_dir}/diff_cover.html")
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment