Fixup test_check_configure after bug 1260066 on a CLOSED TREE. r=me
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 30 Mar 2016 08:36:12 +0900
changeset 291003 36e9b1eebcf22ae03e7717ac6461aa0ecf7faf68
parent 291002 8710643c72dbc2fc9ce7189ece5cf36a1a2719b3
child 291004 c61726fe9e644fa8269e5daafbaa4520d55983ac
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1260066
milestone48.0a1
Fixup test_check_configure after bug 1260066 on a CLOSED TREE. r=me
python/mozbuild/mozbuild/test/configure/test_checks_configure.py
--- a/python/mozbuild/mozbuild/test/configure/test_checks_configure.py
+++ b/python/mozbuild/mozbuild/test/configure/test_checks_configure.py
@@ -22,17 +22,17 @@ class FindProgramSandbox(ConfigureSandbo
     def __init__(self, *args, **kwargs):
         super(FindProgramSandbox, self).__init__(*args, **kwargs)
 
         # We could define self.find_program_impl and have it automatically
         # declared, but then it wouldn't be available in the tested templates.
         # We also need to use super().__setitem__ because ours would do
         # nothing.
         super(FindProgramSandbox, self).__setitem__(
-            'find_program', self.template_impl(self.find_program))
+            'find_program', lambda x: self.find_program(x))
 
     PROGRAMS = {
         'known-a': '/usr/bin/known-a',
         'known-b': '/usr/local/bin/known-b',
         'known c': '/home/user/bin/known c',
     }
 
     for p in PROGRAMS.values():