| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 36931aa commit 82d8051
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,8 +240,10 @@ coverage-clean: | |||
| 240 | 240 | $(RM) -r node_modules | |
| 241 | 241 | $(RM) -r gcovr | |
| 242 | 242 | $(RM) -r coverage/tmp | |
| 243 | - $(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \ | ||
| 244 | - -type f -exec $(RM) {} \; | ||
| 243 | + @if [ -d "out/Release/obj.target" ]; then \ | ||
| 244 | + $(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \ | ||
| 245 | + -type f -exec $(RM) {};\ | ||
| 246 | + fi | ||
| 245 | 247 | ||
| 246 | 248 | .PHONY: coverage | |
| 247 | 249 | # Build and test with code coverage reporting. HTML coverage reports will be | |
@@ -265,7 +267,9 @@ coverage-build-js: | |||
| 265 | 267 | ||
| 266 | 268 | .PHONY: coverage-test | |
| 267 | 269 | coverage-test: coverage-build | |
| 268 | - $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {} \; | ||
| 270 | + @if [ -d "out/Release/obj.target" ]; then \ | ||
| 271 | + $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \ | ||
| 272 | + fi | ||
| 269 | 273 | -NODE_V8_COVERAGE=coverage/tmp \ | |
| 270 | 274 | TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS) | |
| 271 | 275 | $(MAKE) coverage-report-js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments