aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2025-07-08 14:48:57 +0200
committerJean-Sébastien Pédron <[email protected]>2025-07-22 12:52:48 +0200
commitd3e04e8e4fb609aed49e473602736ed437d1ba89 (patch)
tree2c821a2569420a076e8496fb7a54c324c08a4ec3
parentbeefd4b0b996e5414b32353c63191b6a77b3b498 (diff)
downloaderlang.mk-d3e04e8e4fb609aed49e473602736ed437d1ba89.tar.gz
erlang.mk-d3e04e8e4fb609aed49e473602736ed437d1ba89.tar.bz2
erlang.mk-d3e04e8e4fb609aed49e473602736ed437d1ba89.zip
test/plugin_eunit.mk: Make `eunit-erl-opts` insensitive to verbose mode
If `V=...` is set on the command line to increase verbosity while debugging, the first grep(1) command will also catch the debug output of make(1) which contains the executed command line and thus mentions "hello". The fixed grep(1) command line explicitly grep for a line starting with "hello".
-rw-r--r--test/plugin_eunit.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/plugin_eunit.mk b/test/plugin_eunit.mk
index bd1f0e0..532f699 100644
--- a/test/plugin_eunit.mk
+++ b/test/plugin_eunit.mk
@@ -275,7 +275,7 @@ eunit-erl-opts: init
"-endif." > $(APP)/src/$(APP).erl
$i "Check that EUnit uses EUNIT_ERL_OPTS"
- $t $(MAKE) -C $(APP) eunit | grep -c "hello" | grep -q 1
+ $t $(MAKE) -C $(APP) eunit | grep -c "^hello" | grep -q 1
eunit-fun: init