[PATCH] osmo-gsm-tester[master]: trial: always use abspath

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
Sun May 14 18:21:53 UTC 2017


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

trial: always use abspath

No actual failure known, but using the abspath will prevent further problems
when running a binary in its own run dir and passing trial paths to it.

Change-Id: Ia2ba876a42eef9122a92645edd1f28ddb56e6be3
---
M src/osmo_gsm_tester/trial.py
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/src/osmo_gsm_tester/trial.py b/src/osmo_gsm_tester/trial.py
index 73e5322..6d507fb 100644
--- a/src/osmo_gsm_tester/trial.py
+++ b/src/osmo_gsm_tester/trial.py
@@ -52,7 +52,7 @@
             return Trial(trials_dir.child(next_trial)).take()
 
     def __init__(self, trial_dir):
-        self.path = trial_dir
+        self.path = os.path.abspath(trial_dir)
         self.set_name(os.path.basename(self.path))
         self.set_log_category(log.C_TST)
         self.dir = util.Dir(self.path)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2ba876a42eef9122a92645edd1f28ddb56e6be3
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