Skip to content

tests/plugin/pipeline.py: Avoid using host user conf

Description

tests/plugin/pipeline.py: Avoid using host user conf

create_pipeline wasn't passing a config parameter to context.load, leading to _context.py loading in the host's buildstream user conf when running tests locally, potentially leading to unwanted errors.

For instance I purposely had a non compatible value in a field for local testing of my user buildstream.conf, which the pipeline tests were wrongly picking up. This is obviously not an issue in the test runners, but leads to unwanted leakage for users running tests locally.

Changes proposed in this merge request:

  • Pass os.devnull (as also done in context.py tests) to avoid the the hosts user conf being attempted to be loaded in.

Merge request reports

Loading