devlib
devlib copied to clipboard
Library for interaction with and instrumentation of remote devices.
This PR introduces the new `LocalTarget` class, which unifies local target handling across macOS and Linux. Fix #728. Key changes include: - Automatic platform detection (mac, linux) - Native command...
Add a pyproject.toml to devlib. Since pyproject.toml doesnt directly support dynamic versioning, added only [build-system] section so that tools like pip will refer back to setup.py to install the core...
Hi, I tried running my macOS machine and encountered the following error during the tests: `cat: /proc/cpuinfo: No such file or directory` This happens because `/proc/cpuinfo` is not available on...
Pass the timeout also as paramiko.SshClient(banner_timeout=...) parameter so that we don't get the following exception too early: SSH logic error: Error reading SSH protocol banner Fixes https://github.com/ARM-software/devlib/issues/725
Use start_new_session=True argument instead of pre_exec_fn to address https://github.com/ARM-software/devlib/issues/708
The timeout parameter on connection types is supposed to be how long to wait when trying to establish a connection to the target. That parameter is currently passed to paramiko's...
The PerfCollector class uses the following pattern: ``` def reset(self): self.target.killall(self.perf_type, as_root=self.target.is_rooted) ``` This is not great as `self.perf_type` can be set to `perf`, so the class ends up indiscriminately...
We have some TODOs after the type annotation change review, for ex, to utilize pydantic in certain places, looking into parameters that can be NotRequired and Optional etc. Need to...