summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/pcu.py
AgeCommit message (Collapse)AuthorFilesLines
2018-08-13Cleanup of class scoped variablesPau Espin Pedrol1-3/+0
After bug described in OS#3456 and fixed in last commit, let's categorize and place variables in its correct plac to avoid similar issus. We leave under the class keyword (class scoped variables) the attributes which are to be used as static class attributes. All other ones are initialized during __init__(). This way w avoid scenarios in which while using an object from an instance attribute we end up reading a class scoped variable which is shared among all instances. Change-Id: I5ad4cac34a9f49eaf42966c01c9c5a4d3f3e9dc8
2018-05-25Add option to expect bts/pcu failures and respawn its processesPau Espin Pedrol1-2/+2
Some tests may want to reproduce some scenarios in which it is expected that a BTS process is stopped, for instance if the BSC link is dropped. Provide a keepalive parameter to start() for bts and pcu objects to inform suite that failures are expected and that it should keep them alive in case that ocurrs by respawning the BTS process. Change-Id: Ia2a7539f9fad457125ac9b60a52a52999e885ba8
2018-03-15pcu.py: Introduce PcuDummy classPau Espin Pedrol1-0/+11
It will be used in later commits by BTS without proper PCU control such as NanoBts. Change-Id: I37ba38f7d81134e5f0ca28fa684fdb09c753bb04
2018-03-15Create Pcu abstract class and make OsmoPcu inherit from itPau Espin Pedrol1-0/+49
This base class will be used to describe the required accessors for all PCU objects. It is introduced in this commit and will be further used in the future when adding a Dummy PCU object which will be used by NanoBts object. Change-Id: Ia3fd4551d1f2932362f99f7d44d65f8ae4fd1979