Fix ansible-test unit test execution. (#45772)

* Fix ansible-test units requirements install.
* Run unit tests as unprivileged user under Docker.
This commit is contained in:
Matt Clay
2018-09-18 08:37:14 -07:00
committed by GitHub
parent 4e532e0ad9
commit 379a7f4f5a
5 changed files with 50 additions and 4 deletions

View File

@@ -335,6 +335,10 @@ def parse_args():
action='store_true',
help='collect tests but do not execute them')
units.add_argument('--requirements-mode',
choices=('only', 'skip'),
help=argparse.SUPPRESS)
add_extra_docker_options(units, integration=False)
sanity = subparsers.add_parser('sanity',