@ -16,6 +16,7 @@ from lib.executor import (
SubprocessError ,
SubprocessError ,
ShellConfig ,
ShellConfig ,
SanityConfig ,
SanityConfig ,
UnitsConfig ,
create_shell_command ,
create_shell_command ,
)
)
@ -201,6 +202,10 @@ def delegate_docker(args, exclude, require):
docker_exec ( args , test_id , [ ' mkdir ' , ' /root/ansible ' ] )
docker_exec ( args , test_id , [ ' mkdir ' , ' /root/ansible ' ] )
docker_exec ( args , test_id , [ ' tar ' , ' oxzf ' , ' /root/ansible.tgz ' , ' -C ' , ' /root/ansible ' ] )
docker_exec ( args , test_id , [ ' tar ' , ' oxzf ' , ' /root/ansible.tgz ' , ' -C ' , ' /root/ansible ' ] )
# docker images are only expected to have a single python version available
if isinstance ( args , UnitsConfig ) and not args . python :
cmd + = [ ' --python ' , ' default ' ]
try :
try :
docker_exec ( args , test_id , cmd , options = cmd_options )
docker_exec ( args , test_id , cmd , options = cmd_options )
finally :
finally :
@ -356,6 +361,10 @@ def delegate_remote(args, exclude, require):
if not args . allow_destructive :
if not args . allow_destructive :
cmd . append ( ' --allow-destructive ' )
cmd . append ( ' --allow-destructive ' )
# remote instances are only expected to have a single python version available
if isinstance ( args , UnitsConfig ) and not args . python :
cmd + = [ ' --python ' , ' default ' ]
manage = ManagePosixCI ( core_ci )
manage = ManagePosixCI ( core_ci )
manage . setup ( )
manage . setup ( )