ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

devlib.target: Fix AndroidTarget unpickle #604

Closed douglas-raillard-arm closed 2 years ago

douglas-raillard-arm commented 2 years ago

Fix setstate to call super().setstate in order to handle the generic part of the deserialization.

douglas-raillard-arm commented 2 years ago

Without that, unpickling an AndroidTarget gives back a broken object missing the _unused_conns attribute.

That pickling/unpickling is used in LISA to transfer a target to a separate process, which is unfortunately necessary in order to run code in a separate user and mount namespace used to mount overlayfs as a regular user.