osmith submitted this change.

View Change

Approvals: jolly: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, approved
jobs/octsim_osmo-ccid-firmware: add timeout arg

For testing the hook scripts (see next patch), it is useful to have a
shorter timeout for some test runs. Make it configurable.

Related: SYS#8011
Change-Id: I3bac142a9e2e5f144ad52ea7c36c05ffbad6f5d1
---
M jobs/octsim_osmo-ccid-firmware.yml
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/jobs/octsim_osmo-ccid-firmware.yml b/jobs/octsim_osmo-ccid-firmware.yml
index dc6ea35..e0617e7 100644
--- a/jobs/octsim_osmo-ccid-firmware.yml
+++ b/jobs/octsim_osmo-ccid-firmware.yml
@@ -16,12 +16,16 @@
name: EMAIL_NOTIFICATIONS
description: For failed build notifications, set to empty to disable
default: 'jenkins-notifications@lists.osmocom.org jsteiger@sysmocom.de acouzens@sysmocom.de'
+ - string:
+ name: TIMEOUT
+ description: Abort the tests after this time in case they hang
+ default: '30m'
builders:
- shell: |
export PYTHONUNBUFFERED=1
cd ./tests
mkdir -p sysmo-octsim/dl
- timeout 30m ./run-tests
+ timeout $TIMEOUT ./run-tests
scm:
- git:
url: https://gerrit.osmocom.org/osmo-ccid-firmware

To view, visit change 42812. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I3bac142a9e2e5f144ad52ea7c36c05ffbad6f5d1
Gerrit-Change-Number: 42812
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: jolly <andreas@eversberg.eu>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>