aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-11-25 14:29:05 -0500
committerXavier Claessens <xavier.claessens@collabora.com>2020-03-06 15:26:02 -0500
commit943e9368f7198b6c2b069ad024ee798037f3c35e (patch)
treeafaae1242cb0d6a17cdd6e16cffd92611a2e80b4 /run_unittests.py
parent2fdedc4d0fc73c509669bf9f89863017e0f0989b (diff)
downloadmeson-943e9368f7198b6c2b069ad024ee798037f3c35e.zip
meson-943e9368f7198b6c2b069ad024ee798037f3c35e.tar.gz
meson-943e9368f7198b6c2b069ad024ee798037f3c35e.tar.bz2
Simplify dependency() fallback
Now that subprojects can override the dependency name, there is no need to provide a variable name for the fallback any more.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index ee5a713..8479e34 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3981,10 +3981,16 @@ recommended as it is not supported on some platforms''')
'descriptive_name': 'sub',
'name': 'sub',
'version': '1.0'
- }
+ },
+ {
+ 'descriptive_name': 'sub-novar',
+ 'name': 'sub_novar',
+ 'version': '1.0',
+ },
]
}
- self.assertDictEqual(res, expected)
+ res['subprojects'] = sorted(res['subprojects'], key=lambda i: i['name'])
+ self.assertDictEqual(expected, res)
def test_introspection_target_subproject(self):
testdir = os.path.join(self.common_test_dir, '45 subproject')