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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user