summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-08-20 14:34:21 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-08-20 14:39:22 +0900
commit2e61b22df4ea5624d6368ca64103c78640744f58 (patch)
treeff8f9f4694fd251e53703224d363281380d69f3f /tests
parent9ac88d5689f1b08a5521b6867b5a590fa2a49b16 (diff)
downloadbuildstream-2e61b22df4ea5624d6368ca64103c78640744f58.tar.gz
tests/cachekey/cachekey.py: Use the same project name for cache key tests
In the test_cache_key_fatal_warnings() test, use the same project name in both generated project directories in order to pass the tests in the case that elements are guaranteed to have differing cache keys for differeing element/project names (which is the case when we consider the "build-root" in the cache key unconditionally).
Diffstat (limited to 'tests')
-rw-r--r--tests/cachekey/cachekey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index 951972206..00dd53fad 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -99,7 +99,7 @@ def test_cache_key_fatal_warnings(cli, tmpdir, first_warnings, second_warnings,
# Builds project, Runs bst show, gathers cache keys
def run_get_cache_key(project_name, warnings):
- config = {"name": project_name, "min-version": "2.0", "element-path": "elements", "fatal-warnings": warnings}
+ config = {"name": "test", "min-version": "2.0", "element-path": "elements", "fatal-warnings": warnings}
project_dir = tmpdir.mkdir(project_name)
project_config_file = str(project_dir.join("project.conf"))