summaryrefslogtreecommitdiff
path: root/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* cachedir: add new dir option that's default root to other dirsRaoul Hidalgo Charman2019-02-191-4/+8
| | | | | | Makes artifactdir and builddir obsolete. Fixes #870
* Make sure testing cache directory existsValentin David2019-01-291-0/+1
| | | | Fixes #873
* conftest.py: Use different artifact directory for integration testsTristan Van Berkom2019-01-161-7/+46
| | | | | | | | To ensure we can run integration tests in parallel, use a tempdir for the artifact cache of each separate integration test run. This makes it possible to run multiple full test runs including integration tests in parallel under detox.
* conftest.py: Don't use deprecated get_marker() functionchandan/fix-pytest-get-markerChandan Singh2019-01-151-1/+1
| | | | | | | | | | | | | | | Starting from `pytest` version 4.1.0, `Node.get_marker()` has been removed, and hence our tests break when running with newer versions of `pytest`. It was deprecated since a while back but it has recently been removed completely. Use `get_closest_marker()` as a replacement that is suggested in the changelog, and seems to work fine for our use case. See https://github.com/pytest-dev/pytest/pull/4564 for more context on the upstream issue. One way of verifying this change is that this should fix the recently added `tests-fedora-update-deps` job, that was failing before due to this issue.
* Don't cache sandbox errorsBenjamin Schubert2018-11-191-1/+5
| | | | | | | | | | Sandbox errors (like missing host tools) are dependent on the host system and rarely on what is actually done. It is therefore better to not cache them as they are subject to change between two runs. Also add test to ensure sandbox failure are not cached
* conftest.py: Ensure platform is not maintained between testsBenjamin Schubert2018-11-081-0/+7
| | | | | | | | | | | | 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.
* Remove unused importsJürg Billeter2018-03-251-1/+0
|
* pylint - dealt with import warningsJames Ennis2018-03-141-1/+2
|
* Modify how the INTEGRATION_CACHE environment var is interpretedSam Thursfield2018-02-281-1/+1
| | | | | | | | When specifying a location for the integration tests cache directory, we would previously append '/integration-cache' to whatever path we were given. This is regarded as confusing. See: https://gitlab.com/BuildStream/buildstream/issues/267
* Store integration tests cache inside the current directory by defaultSam Thursfield2018-02-281-6/+6
| | | | | | | | Previously the code would default to a directory in `/tmp`, but this is often unsuitable as the Linux 'tmpfs' filesystem doesn't support extended file attributes and thus cannot store OSTree repositories. See: https://gitlab.com/BuildStream/buildstream/issues/267
* Merge integration tests into general testsTristan Maat2018-02-071-0/+54