check that our test data has deps

This unit test previously failed to detect a bug because the test data
had no deps.
This commit is contained in:
Mike McLean
2021-02-08 18:56:08 -05:00
parent b9ca83f8b3
commit 0b653b73a0

View File

@@ -958,7 +958,9 @@ class TestBuild:
assert new_mmd.get_module_name().endswith("-devel")
# Check that -devel requires non-devel.
for dep in new_mmd.get_dependencies():
dependencies = new_mmd.get_dependencies()
assert dependencies # test data must have deps for this to be valid
for dep in dependencies:
requires = []
for name in dep.get_runtime_modules():
for stream in dep.get_runtime_streams(name):