"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/runner/lib/executor.py" between
ansible-2.7.6.tar.gz and ansible-2.7.7.tar.gz

About: Ansible is a platform for configuring and managing computers combining multi-node software deployment, ad hoc task execution, and configuration management.

executor.py  (ansible-2.7.6):executor.py  (ansible-2.7.7)
skipping to change at line 564 skipping to change at line 564
""" """
:type target: IntegrationTarget :type target: IntegrationTarget
""" """
if 'needs/httptester/' not in target.aliases: if 'needs/httptester/' not in target.aliases:
return return
for remote in [r for r in remotes if r.version != '2008']: for remote in [r for r in remotes if r.version != '2008']:
manage = ManageWindowsCI(remote) manage = ManageWindowsCI(remote)
manage.upload("test/runner/setup/windows-httptester.ps1", wa tcher_path) manage.upload("test/runner/setup/windows-httptester.ps1", wa tcher_path)
# need to use -Command as we cannot pass an array of values # We cannot pass an array of string with -File so we just us
with -File e a delimiter for multiple values
script = "powershell.exe -NoProfile -ExecutionPolicy Bypass script = "powershell.exe -NoProfile -ExecutionPolicy Bypass
-Command .\\%s -Hosts %s" \ -File .\\%s -Hosts \"%s\"" \
% (watcher_path, ", ".join(HTTPTESTER_HOSTS)) % (watcher_path, "|".join(HTTPTESTER_HOSTS))
if args.verbosity > 3: if args.verbosity > 3:
script += " -Verbose" script += " -Verbose"
manage.ssh(script, options=ssh_options, force_pty=False) manage.ssh(script, options=ssh_options, force_pty=False)
def cleanup_ssh_ports(target): def cleanup_ssh_ports(target):
""" """
:type target: IntegrationTarget :type target: IntegrationTarget
""" """
if 'needs/httptester/' not in target.aliases: if 'needs/httptester/' not in target.aliases:
return return
for remote in [r for r in remotes if r.version != '2008']: for remote in [r for r in remotes if r.version != '2008']:
# delete the tmp file that keeps the http-tester alive # delete the tmp file that keeps the http-tester alive
manage = ManageWindowsCI(remote) manage = ManageWindowsCI(remote)
manage.ssh("del %s /F /Q" % watcher_path) manage.ssh("cmd.exe /c \"del %s /F /Q\"" % watcher_path, for ce_pty=False)
watcher_path = "ansible-test-http-watcher-%s.ps1" % time.time() watcher_path = "ansible-test-http-watcher-%s.ps1" % time.time()
pre_target = forward_ssh_ports pre_target = forward_ssh_ports
post_target = cleanup_ssh_ports post_target = cleanup_ssh_ports
success = False success = False
try: try:
command_integration_filtered(args, internal_targets, all_targets, pre_ta rget=pre_target, command_integration_filtered(args, internal_targets, all_targets, pre_ta rget=pre_target,
post_target=post_target) post_target=post_target)
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)