Add a unit test function for overriding the environment.

Review Request #13070 — Created May 25, 2023 and submitted

Information

RBTools
release-5.x

Reviewers

This introduces a TestCase.env context manager that takes in a
dictionary of new environment settings, sets them, and then unsets them
after the context is run.

Through this, we should be able to safely work with the environment
without tests having to take special care to reset state.

Made use of this in upcoming unit tests.

Summary ID
Add a unit test function for overriding the environment.
This introduces a `TestCase.env` context manager that takes in a dictionary of new environment settings, sets them, and then unsets them after the context is run. Through this, we should be able to safely work with the environment without tests having to take special care to reset state.
428bf4a254a14c0bc0ea72a2d2a413d418dcda80
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (2fe0094)