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