add skip/docker alias to skip tests when running on Docker (#45955)

* add skip/docker alias to skip tests when running on Docker

* changed warning message wording
This commit is contained in:
Jordan Borean 2018-09-21 16:09:54 +10:00 committed by GitHub
parent 198423d6fb
commit 27c10fa502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -1441,6 +1441,13 @@ def get_integration_docker_filter(args, targets):
common_integration_filter(args, targets, exclude)
skip = 'skip/docker/'
skipped = [target.name for target in targets if skip in target.aliases]
if skipped:
exclude.append(skip)
display.warning('Excluding tests marked "%s" which cannot run under docker: %s'
% (skip.rstrip('/'), ', '.join(skipped)))
if not args.docker_privileged:
skip = 'needs/privileged/'
skipped = [target.name for target in targets if skip in target.aliases]