aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-02-26 00:56:21 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-02-26 01:26:54 +0200
commit5d751a25064065cce73eaa6c77b5b19b248c898a (patch)
treecd27dc71e786b68cffee476490f67f0bc36b5b57 /run_unittests.py
parent7564a6335308fb14501cb04eceb555ea291c5dd0 (diff)
downloadmeson-5d751a25064065cce73eaa6c77b5b19b248c898a.zip
meson-5d751a25064065cce73eaa6c77b5b19b248c898a.tar.gz
meson-5d751a25064065cce73eaa6c77b5b19b248c898a.tar.bz2
Pick target exactly rather than relying on dict order.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index ba0527d..fbd51df 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -5236,13 +5236,13 @@ class RewriterTests(BasePlatformTests):
out = self.extract_test_data(out)
self.assertDictEqual(out, {})
- def test_tatrget_add_subdir(self):
+ def test_target_add_subdir(self):
self.prime('2 subdirs')
self.rewrite(self.builddir, os.path.join(self.builddir, 'addTgt.json'))
out = self.rewrite(self.builddir, os.path.join(self.builddir, 'info.json'))
out = self.extract_test_data(out)
expected = {'name': 'something', 'sources': ['first.c', 'second.c']}
- self.assertDictEqual(list(out['target'].values())[0], expected)
+ self.assertDictEqual(out['target']['94b671c@@something@exe'], expected)
def test_kwargs_info(self):
self.prime('3 kwargs')