aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/bts_sysmo.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-08-08 13:55:24 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-08-09 11:01:52 +0000
commit329b6f446c93ebadb9ba407407c443566af6dcf9 (patch)
tree2d982c7591965694d3d779ec1c3e3cf2e054fe60 /src/osmo_gsm_tester/bts_sysmo.py
parent4008b69bbeadf9cfd92de5cbd19fce131c77cae3 (diff)
Set osmo-bts pcu-socket config to point to run dir
Otherwise osmo-bts stores the socket file in /tmp. If an earlier instance doesn't finish cleanly, the file is left there and a new instance will fail to start because it cannot create a new socket file in the same place. Change-Id: I5a1da23c45a4ac496fe765e0d78c52dae3e7808b
Diffstat (limited to 'src/osmo_gsm_tester/bts_sysmo.py')
-rw-r--r--src/osmo_gsm_tester/bts_sysmo.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/bts_sysmo.py b/src/osmo_gsm_tester/bts_sysmo.py
index eab0bdb..f37f88b 100644
--- a/src/osmo_gsm_tester/bts_sysmo.py
+++ b/src/osmo_gsm_tester/bts_sysmo.py
@@ -119,7 +119,12 @@ class SysmoBts(log.Origin):
values = { 'osmo_bts_sysmo': config.get_defaults('osmo_bts_sysmo') }
config.overlay(values, self.suite_run.config())
- config.overlay(values, { 'osmo_bts_sysmo': { 'oml_remote_ip': self.bsc.addr() } })
+ config.overlay(values, {
+ 'osmo_bts_sysmo': {
+ 'oml_remote_ip': self.bsc.addr(),
+ 'pcu_socket_path': os.path.join(SysmoBts.REMOTE_DIR, 'pcu_bts')
+ }
+ })
config.overlay(values, { 'osmo_bts_sysmo': self.conf })
self.dbg('SYSMOBTS CONFIG:\n' + pprint.pformat(values))