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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

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


Review at  https://gerrit.osmocom.org/4316

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

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


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/16/4316/1

diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index 8c24385..7400df2 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
@@ -30,5 +32,7 @@
 cd "$trial_dir"
 tar czf "$base/${trial_dir}-run.tgz" "$(readlink last_run)"
 tar czf "$base/${trial_dir}-bin.tgz" *.md5 *.tgz
+journalctl -u ofono -o short-precise --since "${time_start}" > "$base/${trial_dir}-ofono.log"
+gzip "$base/${trial_dir}-ofono.log"
 
 exit $exit_code

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie83b03cef4f3ca3a2d91ac4731b3ed602ab1eadf
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list