buildman: Deal with DTC in environemnt in test_skip_dtc()

If DTC happens to be set in the environment provided to buildman itself,
this test currently fails. Fix it by removing any DTC variable before
starting the test.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-17 16:51:52 -06:00
parent 22f87ef530
commit 70d8a8b985

View File

@@ -1012,6 +1012,7 @@ class TestBuild(unittest.TestCase):
def test_skip_dtc(self):
"""Test skipping building the dtc tool"""
os.environ.pop('DTC', None)
old_path = os.getenv('PATH')
try:
os.environ['PATH'] = self.base_dir