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/.
Alejandro Leal gerrit-no-reply at lists.osmocom.orgAlejandro Leal has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24282 )
Change subject: srs-enb: sets the remote directory to the given one.
......................................................................
srs-enb: sets the remote directory to the given one.
Sets the remote directory for fapi to the given in the variable 'remote_dir' in the reource schema.
Change-Id: I77a56835a4054b86d1d3f7da823a013b3370f767
---
M src/osmo_gsm_tester/obj/enb_srs.py
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/82/24282/1
diff --git a/src/osmo_gsm_tester/obj/enb_srs.py b/src/osmo_gsm_tester/obj/enb_srs.py
index 98f2edf..1e971c9 100644
--- a/src/osmo_gsm_tester/obj/enb_srs.py
+++ b/src/osmo_gsm_tester/obj/enb_srs.py
@@ -33,6 +33,7 @@
'library_path': schema.STR,
'prerun_scripts[]': schema.STR,
'postrun_scripts[]': schema.STR,
+ 'remote_dir': schema.STR
}
schema.register_resource_schema('enb', resource_schema)
@@ -97,6 +98,16 @@
self._additional_args = []
if not rf_type_valid(conf.get('rf_dev_type', None)):
raise log.Error('Invalid rf_dev_type=%s' % conf.get('rf_dev_type', None))
+
+ # Modify the path to the installation folder for FAPI.
+ if self._conf.get('rf_dev_type') == 'fapi':
+ path = self._conf.get('remote_dir', None)
+ if not path:
+ raise log.Error('Could not find the execution remote path. Aborting')
+ return
+
+ self.log(f'Setting the remote dir to: {path}')
+ srsENB.REMOTE_DIR = path
def cleanup(self):
if self.process is None:
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24282
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I77a56835a4054b86d1d3f7da823a013b3370f767
Gerrit-Change-Number: 24282
Gerrit-PatchSet: 1
Gerrit-Owner: Alejandro Leal <alejandro.leal at srs.io>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210519/7b52b628/attachment.htm>