Review at https://gerrit.osmocom.org/7291
modem: workaround ofono crash Since commit bfd0b2310cf09e32cb7d5dbe74ec57606a7d2aab, the IMSI is retreived from ofono. To get the IMSI, the modme must be powered ON previously. The imsi() method is called before calling connect() in order to set up the IMSI in the HLR. As a result, the following behaviour occurs: - Powered=true (in imsi()) - SimManager.GetProperties() (several of them) - Powered=false (power_cycle() in connect() It seems powering off the modem immediately after using the SIM service makes ofono crash. Proof of it is that crashes were seen mainly on tests using only 1 MS, in which we don't spend that much time between SimManager.GetProperties() and Powered=false for the same modem. Let's workaround the crash for now increasing the time between using the SIM services and powering the modem off. Related: OS#3064 Change-Id: Ief052cac5a862d6ef9391d40c294ba017387506c --- M src/osmo_gsm_tester/modem.py 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/91/7291/1 diff --git a/src/osmo_gsm_tester/modem.py b/src/osmo_gsm_tester/modem.py index 7fcf134..f50a291 100644 --- a/src/osmo_gsm_tester/modem.py +++ b/src/osmo_gsm_tester/modem.py @@ -577,6 +577,7 @@ req_ifaces = self._required_ifaces() if self.is_powered(): self.dbg('Power cycling') + event_loop.sleep(self, 1.0) # workaround for ofono bug OS#3064 self.power_off() else: self.dbg('Powering on') -- To view, visit https://gerrit.osmocom.org/7291 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ief052cac5a862d6ef9391d40c294ba017387506c Gerrit-PatchSet: 1 Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>