Merge pull request #11185 from ctiller/informed_run_tests

Fix runtests --force_default_poller on linux
pull/7592/merge
Jan Tattermusch 8 years ago committed by GitHub
commit 8ca0055633
  1. 5
      tools/run_tests/run_tests.py

@ -1440,6 +1440,9 @@ def _has_epollexclusive():
return True
except subprocess.CalledProcessError, e:
return False
except OSError, e:
# For languages other than C and Windows the binary won't exist
return False
# returns a list of things that failed (or an empty list on success)
@ -1459,7 +1462,7 @@ def _build_and_run(
suite_name=args.report_suite_name)
return []
if not args.travis and not _has_epollexclusive() and 'epollex' in _POLLING_STRATEGIES[platform_string()]:
if not args.travis and not _has_epollexclusive() and platform_string() in _POLLING_STRATEGIES and 'epollex' in _POLLING_STRATEGIES[platform_string()]:
print('\n\nOmitting EPOLLEXCLUSIVE tests\n\n')
_POLLING_STRATEGIES[platform_string()].remove('epollex')

Loading…
Cancel
Save