mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tools/iotlab-testbed: check iotlab cli tools are installed
This commit is contained in:
parent
a9fceb1592
commit
a7f00548a2
@ -57,6 +57,24 @@ endif
|
||||
IOTLAB_AUTH ?= $(HOME)/.iotlabrc
|
||||
IOTLAB_USER ?= $(shell cut -f1 -d: $(IOTLAB_AUTH))
|
||||
|
||||
ifneq (0,$(shell command -v iotlab-experiment -h 2>&1 > /dev/null ; echo $$?))
|
||||
$(info $(COLOR_RED)'iotlab-experiment' command is not available \
|
||||
please consider installing it from \
|
||||
https://pypi.python.org/pypi/iotlabcli$(COLOR_RESET))
|
||||
$(error )
|
||||
endif
|
||||
|
||||
ifeq (iotlab-a8-m3,$(BOARD))
|
||||
ifneq (,$(filter flash% reset,$(MAKECMDGOALS)))
|
||||
ifneq (0,$(shell command -v iotlab-ssh -h 2>&1 > /dev/null ; echo $$?))
|
||||
$(info $(COLOR_RED)'iotlab-ssh' command is not available \
|
||||
please consider installing it from \
|
||||
https://pypi.python.org/pypi/iotlabsshcli$(COLOR_RESET))
|
||||
$(error )
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Optional Experiment id. Required when having multiple experiments
|
||||
IOTLAB_EXP_ID ?=
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user