summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <gabor.pali@ibm.com>2023-02-16 01:06:47 +0100
committerNick Vatamaniuc <nickva@users.noreply.github.com>2023-02-16 20:43:50 -0500
commit0feedb66f90f767a44c7a7fabb777224d362e968 (patch)
treea6a35d53f8555d8a038b8d8868f48c3476a84c5d
parent065b86fab20d89250a15f7848f7f063e103c7311 (diff)
downloadcouchdb-0feedb66f90f767a44c7a7fabb777224d362e968.tar.gz
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.
-rw-r--r--Makefile4
1 files 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