Pick target exactly rather than relying on dict order.

pull/4982/head
Jussi Pakkanen 6 years ago
parent 7564a63353
commit 5d751a2506
  1. 4
      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')

Loading…
Cancel
Save