[PATCH] osmo-gsm-tester[master]: paths: have one common parent dir /var/tmp/osmo-gsm-tester

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu May 11 15:43:46 UTC 2017


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

paths: have one common parent dir /var/tmp/osmo-gsm-tester

In the example config and the jenkins scripts, use paths below common parent
dir /var/tmp/osmo-gsm-tester.

1. example: put the state dir in /var/tmp/osmo-gsm-tester/state, instead of in
the config dir like /etc/osmo-gsm-tester.

2. contrib scripts: place trials in /var/tmp/osmo-gsm-tester/trials, and to
move into place atomically, use /var/tmp/osmo-gsm-tester/.prep-trials as
temporary location.

The OsmoGSMTester manual is currently also being updated to setup these paths,
with /var/tmp/osmo-gsm-tester owned by a common group and having group-sticky
as well has group-writable access rules.

Change-Id: I2961e9d1d9b14859b886058b54ffcb36f4d88bc1
---
M contrib/jenkins-run.sh
M contrib/trials-cleanup.sh
M example/paths.conf
3 files changed, 5 insertions(+), 5 deletions(-)


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

diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index e82f562..7d796b5 100755
--- a/contrib/jenkins-run.sh
+++ b/contrib/jenkins-run.sh
@@ -8,8 +8,8 @@
 
 osmo_gsm_tester_host="$OSMO_GSM_TESTER_REMOTE_MAIN_UNIT"
 osmo_gsm_tester_src="${OSMO_GSM_TESTER_REMOTE_SRC:-/usr/local/src/osmo-gsm-tester}"
-osmo_gsm_tester_dir="/var/tmp/osmo-gsm-tester"
-tmp_dir="/var/tmp/prep-osmo-gsm-tester"
+osmo_gsm_tester_dir="/var/tmp/osmo-gsm-tester/trials"
+tmp_dir="/var/tmp/osmo-gsm-tester/.prep-trials"
 
 #trial_name="$NODE_NAME-$BUILD_TAG"
 trial_name="trial-$BUILD_NUMBER"
diff --git a/contrib/trials-cleanup.sh b/contrib/trials-cleanup.sh
index baf9c2b..830f4e7 100755
--- a/contrib/trials-cleanup.sh
+++ b/contrib/trials-cleanup.sh
@@ -4,10 +4,10 @@
 trial_rx_dir="$1"
 trial_prep_dir="$2"
 if [ -z "$trial_rx_dir" ]; then
-	trial_rx_dir="/var/tmp/osmo-gsm-tester"
+	trial_rx_dir="/var/tmp/osmo-gsm-tester/trials"
 fi
 if [ -z "$trial_prep_dir" ]; then
-	trial_prep_dir="/var/tmp/prep-osmo-gsm-tester"
+	trial_prep_dir="/var/tmp/osmo-gsm-tester/.prep-trials"
 fi
 
 mkdir -p "$trial_prep_dir"
diff --git a/example/paths.conf b/example/paths.conf
index 3458a1d..554d942 100644
--- a/example/paths.conf
+++ b/example/paths.conf
@@ -1,3 +1,3 @@
-state_dir: './state'
+state_dir: '/var/tmp/osmo-gsm-tester/state'
 suites_dir: '../suites'
 scenarios_dir: './scenarios'

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2961e9d1d9b14859b886058b54ffcb36f4d88bc1
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list