You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:34:42 UTC

[buildstream] 01/02: WIP: tests: Drop build deps for import elements

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch juerg/import-no-build-deps
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit dcb3bf26e6af8a6d4867f4ec4d85d1027e93a130
Author: Jürg Billeter <j...@bitron.ch>
AuthorDate: Sat Mar 2 09:55:38 2019 +0100

    WIP: tests: Drop build deps for import elements
    
    Build dependencies don't make sense for import elements.
---
 tests/frontend/buildtrack.py          | 2 +-
 tests/frontend/track.py               | 2 +-
 tests/frontend/workspace.py           | 2 +-
 tests/testutils/element_generators.py | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/frontend/buildtrack.py b/tests/frontend/buildtrack.py
index 9c56fb4..0ab0164 100644
--- a/tests/frontend/buildtrack.py
+++ b/tests/frontend/buildtrack.py
@@ -26,7 +26,7 @@ def create_element(repo, name, path, dependencies, ref=None):
         'sources': [
             repo.source_config(ref=ref)
         ],
-        'depends': dependencies
+        'runtime-depends': dependencies
     }
     _yaml.dump(element, os.path.join(path, name))
 
diff --git a/tests/frontend/track.py b/tests/frontend/track.py
index 1eadac8..eac007d 100644
--- a/tests/frontend/track.py
+++ b/tests/frontend/track.py
@@ -22,7 +22,7 @@ def generate_element(repo, element_path, dep_name=None):
         ]
     }
     if dep_name:
-        element['depends'] = [dep_name]
+        element['runtime-depends'] = [dep_name]
 
     _yaml.dump(element, element_path)
 
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py
index 0e83491..b6c0ee7 100644
--- a/tests/frontend/workspace.py
+++ b/tests/frontend/workspace.py
@@ -1083,7 +1083,7 @@ def test_external_fetch(cli, datafiles, tmpdir_factory, subdir, guess_element):
 
     element_name, project, workspace = open_workspace(
         cli, tmpdir, datafiles, "git", False, no_checkout=True,
-        element_attrs={'depends': [depend_element]}
+        element_attrs={'runtime-depends': [depend_element]}
     )
     arg_elm = [element_name] if not guess_element else []
 
diff --git a/tests/testutils/element_generators.py b/tests/testutils/element_generators.py
index 448c857..001f866 100644
--- a/tests/testutils/element_generators.py
+++ b/tests/testutils/element_generators.py
@@ -58,7 +58,7 @@ def create_element_size(name, project_dir, elements_path, dependencies, size):
             # Extract only the data directory
             'source': 'data'
         },
-        'depends': dependencies
+        'runtime-depends': dependencies
     }
     _yaml.dump(element, os.path.join(project_dir, elements_path, name))