mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
build: fix make errors that occur in Makefile
fix make errors that occur in coverage-clean case and coverage-test in Makefile PR-URL: https://github.com/nodejs/node/pull/55287 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
129ca9e319
commit
6d36199c5f
4
Makefile
4
Makefile
@ -243,7 +243,7 @@ coverage-clean: ## Remove coverage artifacts.
|
||||
$(RM) -r coverage/tmp
|
||||
@if [ -d "out/Release/obj.target" ]; then \
|
||||
$(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \
|
||||
-type f -exec $(RM) {};\
|
||||
-type f | xargs $(RM); \
|
||||
fi
|
||||
|
||||
.PHONY: coverage
|
||||
@ -269,7 +269,7 @@ coverage-build-js: ## Build JavaScript coverage files.
|
||||
.PHONY: coverage-test
|
||||
coverage-test: coverage-build ## Run the tests and generate a coverage report.
|
||||
@if [ -d "out/Release/obj.target" ]; then \
|
||||
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \
|
||||
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f | xargs $(RM); \
|
||||
fi
|
||||
-NODE_V8_COVERAGE=coverage/tmp \
|
||||
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)
|
||||
|
Loading…
Reference in New Issue
Block a user