Fix running Bazaar unit tests with only Breezy installed.
Review Request #12493 — Created Aug. 2, 2022 and submitted
RBTools was updated to support Breezy, but the unit tests were not. If
Breezy was installed asbrz, but without a symlink tobzr, the unit
tests would be skipped.This change fixes up the test suite to determine the correct version
(usingcheck_installto avoid issues with stalepyenvshims or
"helpful" Linux instruction errors) and to run the correct one.It also fixes up all calls to ensure a user/e-mail is set when operating
on a repository, avoiding errors that can be raised by Breezy.Last, it avoids skipping when setting up the class-wide repository
state. This is to ensure that we don't skip during class setup, and soon
to ensure that each individual test has control over if it will skip.
Ran unit tests with
bzrandbrzinstalled, with justbrz
installed, with justbzrinstalled, and with neither installed.
| Summary | ID |
|---|---|
| 4809e62fe6f0d3d4e1d0f75f7761298defb04c9b |