Skip to content

Commit

Permalink
Set a timeout for ocamltest invocations
Browse files Browse the repository at this point in the history
By default, we allow a generous 10 minutes (600 seconds).

Can be overriden with `make TIMEOUT=...`.
  • Loading branch information
xavierleroy committed Jan 5, 2021
1 parent d0dafb0 commit 63ee9f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testsuite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ else
OCAMLTEST_KEEP_TEST_DIR_ON_SUCCESS_FLAG := -keep-test-dir-on-success
endif

TIMEOUT ?= 600 # 10 minutes

OCAMLTESTFLAGS := \
-timeout $(TIMEOUT) \
$(OCAMLTEST_PROMOTE_FLAG) \
$(OCAMLTEST_KEEP_TEST_DIR_ON_SUCCESS_FLAG)

Expand Down

0 comments on commit 63ee9f4

Please sign in to comment.