osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/42813?usp=email )


Change subject: jobs/osmo-ccid-firmware: run hooks for logs
......................................................................

jobs/osmo-ccid-firmware: run hooks for logs

Run the start-hook.sh / stop-hook.sh scripts that store pcscd logs and a
usbmon capture. The jenkins node is configured to allow running these
two scripts with sudo as jenkins user. Store the resulting files as
artifacts.

Related: OS#8011
Change-Id: Id0d9a39fda24813572b979588c0ca22918829ad4
---
M jobs/gerrit-osmo-ccid-firmware-hwtest.yml
M jobs/octsim_osmo-ccid-firmware.yml
2 files changed, 19 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/13/42813/1

diff --git a/jobs/gerrit-osmo-ccid-firmware-hwtest.yml 
b/jobs/gerrit-osmo-ccid-firmware-hwtest.yml
index 3b9c7c5..d124e86 100644
--- a/jobs/gerrit-osmo-ccid-firmware-hwtest.yml
+++ b/jobs/gerrit-osmo-ccid-firmware-hwtest.yml
@@ -24,7 +24,13 @@
               # Run tests
               export SKIP_FETCH_IMAGE=1
               cd ./tests
-              timeout 30m ./run-tests
+
+              sudo /etc/osmo-ccid-firmware-tests/start-hook.sh
+              FAIL=0
+              timeout 30m ./run-tests || FAIL=1
+              sudo /etc/osmo-ccid-firmware-tests/stop-hook.sh
+
+              exit $FAIL

     scm:
       - git:
@@ -39,5 +45,8 @@
     - build-discarder:
         days-to-keep: 30
         num-to-keep: 120
+    publishers:
+    - archive:
+        artifacts: 'tests/logs/**'
     retry-count: 3 # scm checkout

diff --git a/jobs/octsim_osmo-ccid-firmware.yml 
b/jobs/octsim_osmo-ccid-firmware.yml
index 2adbed7..e094c98 100644
--- a/jobs/octsim_osmo-ccid-firmware.yml
+++ b/jobs/octsim_osmo-ccid-firmware.yml
@@ -24,7 +24,13 @@
             export PYTHONUNBUFFERED=1
             cd ./tests
             mkdir -p sysmo-octsim/dl
-            timeout $TIMEOUT ./run-tests
+
+            sudo /etc/osmo-ccid-firmware-tests/start-hook.sh
+            FAIL=0
+            timeout $TIMEOUT ./run-tests || FAIL=1
+            sudo /etc/osmo-ccid-firmware-tests/stop-hook.sh
+
+            exit $FAIL
     scm:
       - git:
           url: https://gerrit.osmocom.org/osmo-ccid-firmware
@@ -42,6 +48,8 @@
         notify-every-unstable-build: true
         recipients: '$EMAIL_NOTIFICATIONS'
         send-to-individuals: true
+    - archive:
+        artifacts: 'tests/logs/**'
     retry-count: 3 # scm checkout
     triggers:
     - reverse:

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/42813?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Id0d9a39fda24813572b979588c0ca22918829ad4
Gerrit-Change-Number: 42813
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to