Fix ansible-test race calling get_coverage_path.

(cherry picked from commit ef21038dd5)
This commit is contained in:
Matt Clay 2017-11-15 12:00:10 -08:00
parent c4f61a9db4
commit 2bef683fde

View file

@ -48,6 +48,7 @@ from lib.util import (
find_pip,
find_executable,
raw_command,
get_coverage_path,
)
from lib.ansible_util import (
@ -320,6 +321,8 @@ def command_network_integration(args):
instances = [] # type: list [lib.thread.WrappedThread]
if args.platform:
get_coverage_path(args) # initialize before starting threads
configs = dict((config['platform_version'], config) for config in args.metadata.instance_config)
for platform_version in args.platform:
@ -478,6 +481,8 @@ def command_windows_integration(args):
instances = [] # type: list [lib.thread.WrappedThread]
if args.windows:
get_coverage_path(args) # initialize before starting threads
configs = dict((config['platform_version'], config) for config in args.metadata.instance_config)
for version in args.windows: