Commits on Source (4)
-
Remove the bwraps checks from _site.py and put them in platform.linux which is the only place where they are run. This allows the removal of a double level of caching, making reasoning about tests easier
-
This removes the `_instance` on the platform object that we use for caching and not recreating the object everytime at the start of every test. This is to ensure our tests share the least amount of state. The performance penalty is from 5 to 10% accross the whole test suite. The readings were done 5 times for each before and after the change and on the same computer.
-
This adds a `reason` to the SandboxEror thrown in sandboxdummy to be able to understand where the error comes from
-
Benjamin Schubert authored
test behavior when there is no sandbox on Linux Closes #696 and #736 See merge request !921
Showing
- buildstream/_platform/linux.py 30 additions, 5 deletionsbuildstream/_platform/linux.py
- buildstream/_site.py 0 additions, 43 deletionsbuildstream/_site.py
- buildstream/sandbox/_sandboxdummy.py 2 additions, 1 deletionbuildstream/sandbox/_sandboxdummy.py
- conftest.py 7 additions, 0 deletionsconftest.py
- tests/sandboxes/missing-dependencies/elements/base.bst 4 additions, 0 deletionstests/sandboxes/missing-dependencies/elements/base.bst
- tests/sandboxes/missing-dependencies/files/base/bin/sh 1 addition, 0 deletionstests/sandboxes/missing-dependencies/files/base/bin/sh
- tests/sandboxes/missing-dependencies/project.conf 4 additions, 0 deletionstests/sandboxes/missing-dependencies/project.conf
- tests/sandboxes/missing_dependencies.py 86 additions, 0 deletionstests/sandboxes/missing_dependencies.py
tests/sandboxes/missing_dependencies.py
0 → 100644