Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to set test timeout #188

Merged
merged 3 commits into from
Oct 5, 2016
Merged

Conversation

nurupo
Copy link
Member

@nurupo nurupo commented Oct 4, 2016

Some tests take 20 or more minutes to run before they timeout, this allows
to limit their runtime if needed.

@nurupo nurupo assigned nurupo and iphydf and unassigned nurupo Oct 4, 2016
@nurupo nurupo closed this Oct 4, 2016
Some tests take 20 or more minutes to run before they timeout, this allows
to limit their runtime if needed.
@nurupo nurupo reopened this Oct 4, 2016
@iphydf
Copy link
Member

iphydf commented Oct 4, 2016

Would it make sense to also use this on Travis? Perhaps you can set it to 5 minutes. This is per-test, right? None of our tests currently run in more than 300 seconds, and if #173 and its follow-up PR (removing tests from each file to have separate files for each test) it merged, that time will be further reduced.

@nurupo
Copy link
Member Author

nurupo commented Oct 4, 2016

It is per test, e.g. -DTEST_TIMEOUT_SECONDS=5 will timeout any test that runs longer than 5 seconds. This overrides the timeout tests have specified in the code using tcase_set_timeout(). For example, tox_test has tcase_set_timeout() set to 280 seconds in total (560 on Travis).

@iphydf iphydf merged commit 90123c8 into TokTok:master Oct 5, 2016
@iphydf iphydf modified the milestone: v0.0.2 Nov 5, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants