Update ClearCase tests to use build_client() and work without cleartool.

Review Request #12503 — Created Aug. 5, 2022 and submitted

Information

RBTools
release-3.x

Reviewers

This updates the ClearCase unit tests to build a ClearCaseClient in
each test where it's needed, rather than in setUp(). This is in
prepration for new tests that will need to handle client construction
differently.

Tests are no longer skipped if cleartool is missing. These tests mock
all the cleartool invocations, with the exception of the initial
cleartool check and fetching host properties. With these set up with
spies, we no longer need to worry about whether cleartool is
installed.

ClearCase unit tests pass.

Summary ID
Update ClearCase tests to use build_client() and work without cleartool.
This updates the ClearCase unit tests to build a `ClearCaseClient` in each test where it's needed, rather than in `setUp()`. This is in prepration for new tests that will need to handle client construction differently. Tests are no longer skipped if `cleartool` is missing. These tests mock all the `cleartool` invocations, with the exception of the initial `cleartool` check and fetching host properties. With these set up with spies, we no longer need to worry about whether `cleartool` is installed.
be7bb65626ff5a9def485877b1214070b7a5da40
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (0f363f7)