Пример #1
0
    def _run_mach(self, args, context_handler=None):
        mach_dir = os.path.dirname(mach.__file__)
        providers = [
            'commands.py',
            os.path.join(mach_dir, 'commands', 'commandinfo.py'),
        ]

        return TestBase._run_mach(self,
                                  args,
                                  providers,
                                  context_handler=context_handler)
Пример #2
0
    def _run_mach(self, args):
        mach_dir = os.path.dirname(mach.__file__)
        providers = [
            'commands.py',
            os.path.join(mach_dir, 'commands', 'commandinfo.py'),
        ]

        def context_handler(key):
            if key == 'topdir':
                return topsrcdir

        return TestBase._run_mach(self, args, providers,
                                  context_handler=context_handler)
Пример #3
0
 def _run_mach(self, args, context_handler=_populate_bare_context):
     return TestBase._run_mach(self,
                               args,
                               'conditions.py',
                               context_handler=context_handler)
Пример #4
0
 def _run_mach(self, args):
     return TestBase._run_mach(self,
                               args,
                               'throw.py',
                               context_handler=_populate_context)
Пример #5
0
 def _run_mach(self, args):
     return TestBase._run_mach(self, args, 'throw.py')
Пример #6
0
 def _run_mach(self):
     return TestBase._run_mach(self, ['help'], entry_point='mach.providers')
Пример #7
0
 def _run_mach(self, args, context_handler=None):
     return TestBase._run_mach(self, args, 'conditions.py',
                               context_handler=context_handler)
Пример #8
0
 def _run_mach(self, args, context_handler=None):
     return TestBase._run_mach(self, args, 'conditions.py',
                               context_handler=context_handler)
Пример #9
0
 def _run_mach(self):
     return TestBase._run_mach(self, ['help'], entry_point='mach.providers')
Пример #10
0
 def _run_mach(self, args):
     return TestBase._run_mach(self, args, 'throw.py')