diff options
author | Jürg Billeter <j@bitron.ch> | 2019-07-16 15:51:39 +0200 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-17 10:42:53 +0000 |
commit | df92e8e08ea4ddfd58d6cfbf63d758cda5d3d44f (patch) | |
tree | 18552a6b837d8df1a4ec01a2d043d0a64634890f /tests/integration | |
parent | 6160a64cfc4788d9c7e0519b77f55ed870b6a6a7 (diff) | |
download | buildstream-df92e8e08ea4ddfd58d6cfbf63d758cda5d3d44f.tar.gz |
Store Platform reference in Context instance variable
This allows us to remove the platform reset helpers in
tests/conftest.py.
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/cachedfail.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py index 467d3968f..a7509ab3b 100644 --- a/tests/integration/cachedfail.py +++ b/tests/integration/cachedfail.py @@ -25,7 +25,6 @@ from buildstream._exceptions import ErrorDomain from buildstream.testing import cli_integration as cli # pylint: disable=unused-import from buildstream.testing._utils.site import HAVE_SANDBOX -from tests.conftest import clean_platform_cache from tests.testutils import create_artifact_share @@ -206,16 +205,11 @@ def test_host_tools_errors_are_not_cached(cli, datafiles): } _yaml.roundtrip_dump(element, element_path) - clean_platform_cache() - # Build without access to host tools, this will fail result1 = cli.run(project=project, args=['build', 'element.bst'], env={'PATH': '', 'BST_FORCE_SANDBOX': None}) result1.assert_task_error(ErrorDomain.SANDBOX, 'unavailable-local-sandbox') assert cli.get_element_state(project, 'element.bst') == 'buildable' - # clean the cache before running again - clean_platform_cache() - # When rebuilding, this should work result2 = cli.run(project=project, args=['build', 'element.bst']) result2.assert_success() |