Tests are non deterministic after supporting running commands in project subdirs
Summary
Since landing !428 (merged) and closing #368 (closed), tests/format/project.py::test_missing_project_conf fails depending on the location of the BuildStream checkout.
This test asserts that we emit the correct error when BuildStream cannot locate the project's project.conf
.
Steps to reproduce
mkdir TEST
cd TEST
git clone <buildstream>
touch project.conf
cd buildstream
./setup.py test --addopts 'tests/format/project.py::test_missing_project_conf'
What is the current bug behavior?
Test fails
What is the expected correct behavior?
Test passes
Possible fixes
Hard to say, we might consider some basic validation to ensure the project.conf
is indeed a BuildStream project when we find it by searching parent directories, that would improve things but would still not completely solve this issue.
Disabling the feature for the sake of the test defeats the purpose of the test in a sense, so let's not do that.
- BuildStream version affected: /milestone %BuildStream_v1.x