def assertMain(self, args, common_options=True):
     if common_options:
         # Suppress cgroups code.  For cbuildbot invocation, it doesn't hugely
         # care about cgroups- that's a blackbox to it.  As such these unittests
         # should not be sensitive to it.
         args.extend(["--sourceroot", self.sourceroot, "--nocgroups", "--notee"])
     return cbuildbot.main(args)
Пример #2
0
 def assertMain(self, args, common_options=True):
     if common_options:
         args.extend(['--sourceroot', self.sourceroot, '--notee'])
     try:
         return cbuildbot.main(args)
     finally:
         cros_build_lib.STRICT_SUDO = False
 def assertMain(self, args, common_options=True):
     if common_options:
         # Suppress cgroups code.  For cbuildbot invocation, it doesn't hugely
         # care about cgroups- that's a blackbox to it.  As such these unittests
         # should not be sensitive to it.
         args.extend(
             ['--sourceroot', self.sourceroot, '--nocgroups', '--notee'])
     return cbuildbot.main(args)
Пример #4
0
 def assertMain(self, args, common_options=True):
     if common_options:
         args.extend(['--sourceroot', self.sourceroot, '--notee'])
     return cbuildbot.main(args)