From 57876f7b1089834d7f5a9b444c8609a1ae6b0336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 30 Jun 2019 17:59:17 +0200 Subject: Tweak a check in ct tests to make it work on Make 3.82 Getting: Nothing to be done for `ct' Instead of, in later versions: Nothing to be done for 'ct' Only check for the start of the sentence instead. --- test/plugin_ct.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/plugin_ct.mk b/test/plugin_ct.mk index 381eb5a..6c31f49 100644 --- a/test/plugin_ct.mk +++ b/test/plugin_ct.mk @@ -14,7 +14,7 @@ ct-all: init $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v $i "Check that Common Test detects no tests" - $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for 'ct'." | grep -q 1 + $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for" | grep -q 1 $i "Generate a Common Test suite" $t mkdir $(APP)/test @@ -103,7 +103,7 @@ ct-apps-only: init "random_int() -> 4." > $(APP)/apps/my_lib_only/src/my_lib_only.erl $i "Check that Common Test detects no tests" - $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for 'ct'." | grep -q 2 + $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for" | grep -q 2 $i "Generate a Common Test suite in my_app_only" $t mkdir $(APP)/apps/my_app_only/test -- cgit v1.2.3