Update TFS support to use the new run_process().
Review Request #12565 — Created Aug. 24, 2022 and submitted
This updates the TFS wrapper classes to switch over from
execute()
to
run_process()
. This gives us greater type safety across TFS, which is
important in keeping this client implementation maintainable.All call sites now explicitly read either the byte stream or the Unicode
stream, depending on their needs. There's no longer a risk of expecting
one type and ending up with another.Unit tests have been updated to spy on
run_process_exec()
, which gives
us a safe, checked way of returning data for tests that guarantees
proper interpreration by TFS.
Unit tests pass on Python 3.7-3.11.
Summary | ID |
---|---|
62a79008503fc21c41307130f2ec1879d64281f5 |
Description | From | Last Updated |
---|---|---|
'rbtools.utils.process.RunProcessError' imported but unused Column: 1 Error code: F401 |
reviewbot | |
'rbtools.utils.process.RunProcessResult' imported but unused Column: 1 Error code: F401 |
reviewbot | |
Can take this out. |
maubin | |
This comment no longer applies. |
maubin | |
Same here. |
maubin |
- Change Summary:
-
Removed unused imports.
- Commits:
-
Summary ID 2dd2b22ca1c9d39ffdf457ec01e2d533d4d01fdc 008ef203f8ffe68c3e8ef62c928f3c221e24746c - Diff:
-
Revision 2 (+670 -646)
Checks run (2 succeeded)
- Change Summary:
-
- Removed an unused
**kwargs
docstring. - Updated two comment blocks to describe how the XML content is decoded, removing legacy
execute
-specific information.
- Removed an unused
- Commits:
-
Summary ID 008ef203f8ffe68c3e8ef62c928f3c221e24746c 62a79008503fc21c41307130f2ec1879d64281f5 - Diff:
-
Revision 3 (+682 -668)