You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/02/17 01:44:00 UTC
[couchdb] 03/05: Fix the `list-eunit-apps` target
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 0feedb66f90f767a44c7a7fabb777224d362e968
Author: Gabor Pali <ga...@ibm.com>
AuthorDate: Thu Feb 16 01:06:47 2023 +0100
Fix the `list-eunit-apps` target
Due to the double slash in the path that is generated by the
invocation of `find(1)`, the wrong part of the path is going to
be cut. This mistake does not cause trouble for
`list-eunit-suites`, adjusted for consistency only.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 907bbae75..f44075d86 100644
--- a/Makefile
+++ b/Makefile
@@ -302,7 +302,7 @@ check-qs:
.PHONY: list-eunit-apps
# target: list-eunit-apps - List EUnit target apps
list-eunit-apps:
- @find ./src/ -type f -name *_test.erl -o -name *_tests.erl \
+ @find ./src -type f -name *_test.erl -o -name *_tests.erl \
| cut -d '/' -f 3 \
| sort -u
@@ -310,7 +310,7 @@ list-eunit-apps:
.PHONY: list-eunit-suites
# target: list-eunit-suites - List EUnit target test suites
list-eunit-suites:
- @find ./src/ -type f -name *_test.erl -o -name *_tests.erl -exec basename {} \; \
+ @find ./src -type f -name *_test.erl -o -name *_tests.erl -exec basename {} \; \
| cut -d '.' -f -1 \
| sort