summaryrefslogtreecommitdiff
path: root/tests/integration/source-determinism.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: source_determinism.py: Do not use too restrictive test umasksjuerg/casd-separate-userJürg Billeter2019-12-031-2/+7
| | | | | | | | To protect the local cache of buildbox-casd from corruption without the use of FUSE, buildbox-casd has to run as a different user. Use less restrictive umasks in the source determinism tests to allow buildbox-casd to function when it is running as a separate user.
* Reformat code using BlackChandan Singh2019-11-141-43/+26
| | | | | | | As discussed over the mailing list, reformat code using Black. This is a one-off change to reformat all our codebase. Moving forward, we shouldn't expect such blanket reformats. Rather, we expect each change to already comply with the Black formatting style.
* Revert "Mark xfail test that only fail in CI"Jürg Billeter2019-08-071-2/+0
| | | | This reverts commit b54c8cb07ca257be79940ffa70853bf75d2c287c.
* Mark xfail test that only fail in CIWilliam Salmon2019-07-251-0/+2
|
* tests: Change all calls to _yaml.dump to _yaml.rountrip_dumpBenjamin Schubert2019-07-151-1/+1
| | | | | Now that both are equivalent, we can skip the sanitization part before the yaml call.
* test:utils/site: Consolidate HAVE_SANDBOX in a single site fileBenjamin Schubert2019-06-061-1/+1
| | | | | | | | We have two different 'site' files that are redundant and both define some variables in BuildStream environment. Remove HAVE_SANDBOX from tests/testutils/site.py and change all imports to point to the other one
* tests/integration: Fix all 'unused-import' errorsBenjamin Schubert2019-06-061-1/+0
|
* tests/integration: Disable 'unused-import' checks that are pytest fixturesBenjamin Schubert2019-06-061-1/+1
| | | | | | | Some imports are fixtures, that need to be in the current namespace when pytest runs. However, pylint does not know this. Disabling pylint checks on those imports
* tests/integration: Silence all 'redefined-outer-name' pylint errorsBenjamin Schubert2019-06-061-0/+3
| | | | | | | | | | This is due to pytest fixtures having to be named the same as the test arguments. This is a pre-requisite to enable pylint on this directory We need to do this per file as we can't blanket disable for directories. See upstream issue: https://github.com/PyCQA/pylint/issues/618
* plugintestutils: Rename 'plugintestutils' package to 'testing'phil/rename-plugintestutilsPhil Dawson2019-04-161-2/+2
| | | | | | | | | - Rename plugintestutils to testing. - Don't run the tests from bst-plugins-template. This imports buildstream.plugintestutils so will have to be disabled to get through CI. This can be re nabled once bst-plugins-template has been patched.
* testutils: move repo.py into buildstream.plugintestutilsPhil Dawson2019-04-121-1/+1
| | | | | | | | This needs to be exposed as part of the plugin author facing API so that plugin authors can define custom repo types which will can be passed to the set of tests which iterate over multiple source types. Part of the work towards #944
* tests: move templated tests from source-determinism.py into separate filePhil Dawson2019-03-141-73/+1
| | | | | | | Move the templated tests in tests/frontend/source-determinism.py into sources/source_determinism.py This is part of the preparation work for #944
* tests: Remove unused importsremove-dead-codeBenjamin Schubert2019-03-011-1/+1
|
* Use [a, b, *c] instead of [a, b] + c when building listbschubert/more-pythonic-list-concatBenjamin Schubert2019-03-011-1/+1
| | | | | This pattern is available from python3.5 and provides a simpler understanding of what is going on
* cachedir: add new dir option that's default root to other dirsRaoul Hidalgo Charman2019-02-191-8/+4
| | | | | | Makes artifactdir and builddir obsolete. Fixes #870
* Expose basic api for testing external plugins.phil/plugin-testing-apiPhil Dawson2019-02-081-1/+1
| | | | | | | | | | | | | | | | | | We want external plugins to be able to make use of the core testing utils. This commit exposes the basic utilities which are currently in use in bst-external plugins. If necessary, more utilities could be exposed in the future. Moves the following files from tests/testutils/ to buildstream/plugintestingutils/: o runcli.py o integration.py As part of this, this commit makes the following changes to runcli.py and integration.py: o runcli.py: Fix linting errors o runcli.py: Add user facing documentation o Integration.py: Add user facing documentation
* tests: Skip tests that use sandboxes on WSLJonathan Maw2019-02-061-3/+3
|
* Mark 'old' checkout command as obsoleteJames Ennis2019-01-221-2/+2
| | | | | | | | | | | This commit marks 'bst checkout' as a 'hidden' command. If used, the user will be prompted to use the new 'bst artifact checkout' command. All tests which used 'bst checkout' have been modified to use the new artifact sub-command. This partially solves #822.
* conftest.py: Use different artifact directory for integration testsTristan Van Berkom2019-01-161-2/+2
| | | | | | | | 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.
* Added tests for .bst suffix and completionsPhillip Smyth2018-11-301-2/+2
| | | | | | | | buildcheckout.py: Add mandatory .bst suffix tests completions.py: Add test for fail on invalid suffix Added required files for testing integration/source-determinism.py: renamed test elements to end with .bst loader/__init__.py: initialised context properly with load and a message handler
* Ensure tests requiring bubblewrap are correctly markedBenjamin Schubert2018-11-201-0/+3
|
* tests/integration/source-determinism.py: Use cli_integration.valentindavid/cli_integration_source_determinismValentin David2018-08-241-5/+10
|
* Add some integration tests for source plugin determinism.Valentin David2018-08-121-0/+155