mirror of https://gerrit.osmocom.org/pysim
filesystem: make sure the card is in a defined state
When the runtime state is created there is already some interaction with the card. Lets make sure that the card is in a defined state when we leave the constructor of the RuntimeState. Change-Id: I986204964903069bcce781afdbf3c5d26682b749 Related: OS#5274
This commit is contained in:
parent
d454fe7843
commit
4e2e1d9fd3
|
@ -1074,6 +1074,10 @@ class RuntimeState(object):
|
|||
self.mf.add_file(f)
|
||||
self.conserve_write = True
|
||||
|
||||
# make sure that when the runtime state is created, the card is also
|
||||
# in a defined state.
|
||||
self.reset()
|
||||
|
||||
def _match_applications(self):
|
||||
"""match the applications from the profile with applications on the card"""
|
||||
apps_profile = self.profile.applications
|
||||
|
|
Loading…
Reference in New Issue