Add dependency checks for SOS.

Review Request #12551 — Created Aug. 18, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-4.x

Reviewers

This updates SOSClient to add formal support for dependency checks.
SOSClient.check_dependencies() now determines if soscmd is
installed.

SOSClient.get_local_path() now calls this instead of checking for
dependencies itself, emitting a warning if dependencies haven't already
been checked via setup() or has_dependencies().

SOS unit tests simulated results, so the test skipping abilities are not
used. New tests have been added to test the SOS dependency check
functionality.

Unit tests pass for Python 3.7-3.11.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add dependency checks for SOS.
This updates `SOSClient` to add formal support for dependency checks. `SOSClient.check_dependencies()` now determines if `soscmd` is installed. `SOSClient.get_local_path()` now calls this instead of checking for dependencies itself, emitting a warning if dependencies haven't already been checked via `setup()` or `has_dependencies()`. SOS unit tests simulated results, so the test skipping abilities are not used. New tests have been added to test the SOS dependency check functionality.
108ff37dd085beb478fbe90ae2fa876b697128e5 Christian Hammond
rbtools/clients/sos.py
rbtools/clients/tests/test_sos.py
Loading...