From 516f2706b948365c9b5cc4bd5b1bb1fb8011f414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 10 May 2017 17:44:10 +0200 Subject: 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. --- test/core_deps.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/core_deps.mk b/test/core_deps.mk index bb9d189..da1cdd9 100644 --- a/test/core_deps.mk +++ b/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 -- cgit v1.2.3