diff --git a/rakefiles/tests.rake b/rakefiles/tests.rake index 7e6d12c40f..b8919bdf90 100644 --- a/rakefiles/tests.rake +++ b/rakefiles/tests.rake @@ -48,7 +48,7 @@ task :clean_test_files do # Delete all files in the reports directory, while preserving # 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 sh("git clean -fqdx test_root") @@ -138,6 +138,6 @@ task :coverage => :report_dirs do sh("coverage html --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