diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-12 16:08:13 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-31 15:05:52 +0300 |
commit | 9c7435bf408db49d16915e6d808c6f746232be3b (patch) | |
tree | a34e6aea7dda841d3b0fff80830686a669acb16c /tests | |
parent | f538fce83a0b902f6097c9a02b273cf2091b106e (diff) | |
download | buildstream-9c7435bf408db49d16915e6d808c6f746232be3b.tar.gz |
tests/format/dependencies.py: Testing for error of invalid strict runtime deps
Diffstat (limited to 'tests')
-rw-r--r-- | tests/format/dependencies.py | 7 | ||||
-rw-r--r-- | tests/format/dependencies1/elements/invalidstrict.bst | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/format/dependencies.py b/tests/format/dependencies.py index e8c50d3bc..e8be68a5d 100644 --- a/tests/format/dependencies.py +++ b/tests/format/dependencies.py @@ -51,6 +51,13 @@ def test_invalid_dependency_type(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) +def test_invalid_strict_dependency(cli, datafiles): + project = os.path.join(str(datafiles), 'dependencies1') + result = cli.run(project=project, args=['show', 'invalidstrict.bst']) + result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_DATA) + + +@pytest.mark.datafiles(DATA_DIR) def test_circular_dependency(cli, datafiles): project = os.path.join(str(datafiles), 'dependencies1') result = cli.run(project=project, args=['show', 'circulartarget.bst']) diff --git a/tests/format/dependencies1/elements/invalidstrict.bst b/tests/format/dependencies1/elements/invalidstrict.bst new file mode 100644 index 000000000..8893b4aa9 --- /dev/null +++ b/tests/format/dependencies1/elements/invalidstrict.bst @@ -0,0 +1,9 @@ +kind: manual +description: | + + This is an invalid strict dependency because runtime + dependencies cannot be strict. + +runtime-depends: +- filename: firstdep.bst + strict: true |