def RunChecks(self):
    'Runs one or more checks, tries fixes, and outputs results.\n\n    Returns:\n      True if the diagnostic ultimately passed.\n    '
    self._Print(self.intro)
    num_checks_passed = 0
    for check in self.checklist:
        (result, fixer) = self._RunCheck(check)
        if properties.VALUES.core.disable_prompts.GetBool():
            continue
        num_retries = 0
        while ((not result.passed) and fixer and (num_retries < self._MAX_RETRIES)):
            num_retries += 1
            should_check_again = fixer()
            if should_check_again:
                (result, fixer) = self._RunCheck(check, first_run=False)
            else:
                fixer = None
        if ((not result.passed) and fixer and (num_retries == self._MAX_RETRIES)):
            log.warn('Unable to fix {0} failure after {1} attempts.'.format(self.title, num_retries))
        if result.passed:
            num_checks_passed += 1
    num_checks = len(self.checklist)
    passed = (num_checks_passed == num_checks)
    summary = '{check} ({num_passed}/{num_checks} checks) {passed}.\n'.format(check=self.title, num_passed=num_checks_passed, num_checks=num_checks, passed=('passed' if passed else 'failed'))
    self._Print(summary, as_error=(not passed))
    return passed
Runs one or more checks, tries fixes, and outputs results.

Returns:
  True if the diagnostic ultimately passed.
def RunChecks(self):
    'Runs one or more checks, tries fixes, and outputs results.\n\n    Returns:\n      True if the diagnostic ultimately passed.\n    '
    self._Print(self.intro)
    num_checks_passed = 0
    for check in self.checklist:
        (result, fixer) = self._RunCheck(check)
        if properties.VALUES.core.disable_prompts.GetBool():
            continue
        num_retries = 0
        while ((not result.passed) and fixer and (num_retries < self._MAX_RETRIES)):
            num_retries += 1
            should_check_again = fixer()
            if should_check_again:
                (result, fixer) = self._RunCheck(check, first_run=False)
            else:
                fixer = None
        if ((not result.passed) and fixer and (num_retries == self._MAX_RETRIES)):
            log.warn('Unable to fix {0} failure after {1} attempts.'.format(self.title, num_retries))
        if result.passed:
            num_checks_passed += 1
    num_checks = len(self.checklist)
    passed = (num_checks_passed == num_checks)
    summary = '{check} ({num_passed}/{num_checks} checks) {passed}.\n'.format(check=self.title, num_passed=num_checks_passed, num_checks=num_checks, passed=('passed' if passed else 'failed'))
    self._Print(summary, as_error=(not passed))
    return passed