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

test/core_deps.mk: Wait for node in core-deps-rel

When the test check the running applications in the started release, the
node may not be up yet. So loop until the command returns a list of
applications (instead of "Node is not running!").

This fixes some transient failures.
Jean-Sébastien Pédron 8 лет назад
Родитель
Сommit
516f2706b9
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      test/core_deps.mk

+ 6 - 2
test/core_deps.mk

@@ -1582,8 +1582,12 @@ ifeq ($(PLATFORM),msys2)
 else
 	$i "Start the release and check that Recon is loaded"
 	$t $(APP)/_rel/$(APP)_release/bin/$(APP)_release start $v
-	$t test -n "`$(APP)/_rel/$(APP)_release/bin/$(APP)_release rpcterms \
-		application loaded_applications | grep recon`"
+	$t apps="Node is not running!"; \
+		while test "$$apps" = "Node is not running!"; do \
+			apps=$$($(APP)/_rel/$(APP)_release/bin/$(APP)_release \
+			rpcterms \ application loaded_applications); \
+		done; \
+		echo "$$apps" | grep -q recon
 	$t $(APP)/_rel/$(APP)_release/bin/$(APP)_release stop $v
 endif