[MERGED] osmo-gsm-tester[master]: contrib/jenkins-run.sh: Log and archive ofono output during ...

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Oct 17 13:54:35 UTC 2017


Pau Espin Pedrol has submitted this change and it was merged.

Change subject: contrib/jenkins-run.sh: Log and archive ofono output during test time
......................................................................


contrib/jenkins-run.sh: Log and archive ofono output during test time

Change-Id: Ie83b03cef4f3ca3a2d91ac4731b3ed602ab1eadf
---
M contrib/jenkins-run.sh
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index 8c24385..716899e 100755
--- a/contrib/jenkins-run.sh
+++ b/contrib/jenkins-run.sh
@@ -2,6 +2,8 @@
 set -e -x
 base="$PWD"
 
+time_start="$(date '+%F %T')"
+
 # remove older trial dirs and *-run.tgz, if any
 trial_dir_prefix="trial-"
 rm -rf "$trial_dir_prefix"* || true
@@ -28,6 +30,7 @@
 
 # tar up all results for archiving (optional)
 cd "$trial_dir"
+journalctl -u ofono -o short-precise --since "${time_start}" > "$(readlink last_run)/ofono.log"
 tar czf "$base/${trial_dir}-run.tgz" "$(readlink last_run)"
 tar czf "$base/${trial_dir}-bin.tgz" *.md5 *.tgz
 

-- 
To view, visit https://gerrit.osmocom.org/4316
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie83b03cef4f3ca3a2d91ac4731b3ed602ab1eadf
Gerrit-PatchSet: 2
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>


More information about the gerrit-log mailing list