Fix running Bazaar unit tests with only Breezy installed.
Review Request #12493 — Created Aug. 2, 2022 and submitted — Latest diff uploaded
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_install
to avoid issues with stalepyenv
shims 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
bzr
andbrz
installed, with justbrz
installed, with justbzr
installed, and with neither installed.