Added automatic cmd timeout
This commit is contained in:
parent
7e93fb646b
commit
a3461752c9
|
@ -6,6 +6,8 @@ MB_AUTOEXEC_STARTUP_TIMEOUT ?= 60
|
|||
MB_AUTOEXEC_STARTUP_EXITCODE ?= 124
|
||||
MB_AUTOEXEC_TEST_TIMEOUT ?= 120
|
||||
MB_AUTOEXEC_TEST_EXITCODE ?= 1
|
||||
MB_AUTOEXEC_CMD_TIMEOUT ?= 300
|
||||
MB_AUTOEXEC_CMD_EXITCODE ?= 1
|
||||
|
||||
define mb_autoexec_append_cmd
|
||||
echo "$(2)\r" >> $(1)/autoexec.bat
|
||||
|
@ -54,6 +56,7 @@ endef
|
|||
define mb_autoexec_cmd
|
||||
@echo === Generating autoexec.bat for command
|
||||
$(call mb_autoexec_write_default,$(1))
|
||||
$(call mb_autoexec_append_cmd,$(1),omsxctl fail_after $(MB_AUTOEXEC_CMD_TIMEOUT) seconds fail_after_cmd $(MB_AUTOEXEC_CMD_EXITCODE))
|
||||
$(call mb_autoexec_append_echo,$(1),Running command '$(2)')
|
||||
$(call mb_autoexec_append_cmd,$(1),$(2))
|
||||
$(call mb_autoexec_append_exit,$(1))
|
||||
|
|
Loading…
Reference in a new issue