Просмотр исходного кода

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.
Loïc Hoguin 6 лет назад
Родитель
Сommit
57876f7b10
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      test/plugin_ct.mk

+ 2 - 2
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