aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2017-05-10 17:44:10 +0200
committerLoïc Hoguin <[email protected]>2017-05-12 11:24:17 +0200
commit516f2706b948365c9b5cc4bd5b1bb1fb8011f414 (patch)
treea12c2b3929514da97edf687f59698851281c5b30
parent0c2ca82ac0f32435656ba2ee4b687161cb213470 (diff)
downloaderlang.mk-516f2706b948365c9b5cc4bd5b1bb1fb8011f414.tar.gz
erlang.mk-516f2706b948365c9b5cc4bd5b1bb1fb8011f414.tar.bz2
erlang.mk-516f2706b948365c9b5cc4bd5b1bb1fb8011f414.zip
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.
-rw-r--r--test/core_deps.mk8
1 files changed, 6 insertions, 2 deletions
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