[CORD-3011]
Wait for models to be loaded before performing tests

Change-Id: Ifd7220761cef9d986e0ad8659eb0f09aa7a1e43b
diff --git a/Makefile b/Makefile
index 2e53c9d..0321c7b 100644
--- a/Makefile
+++ b/Makefile
@@ -194,6 +194,14 @@
 xos-services-up:
 	$(ANSIBLE_PB) $(PI)/xos-services-up.yml $(LOGCMD)
 
+# wait for dynamic loading
+DYNAMICLOAD_WAIT   ?= 60
+DYNAMICLOAD_URL    ?= http://localhost:9101
+DYNAMICLOAD_MODELS ?=
+
+xos-wait-dynamicload:
+	python $(BUILD)/scripts/xos-wait-dynamicload.py $(DYNAMICLOAD_WAIT) $(DYNAMICLOAD_URL) $(DYNAMICLOAD_MODELS)
+
 # docs
 .PHONY: docs
 docs: