hacking - account for job names that contain separators (#75454)

Some job names contain '/' which causes the download job to fail.

Example job name: `Post-job: Checkout ansible/ansible@refs/pull/75445/merge to ansible.log`
pull/75484/head
Sam Doran 3 years ago committed by GitHub
parent 7450e87615
commit 5af0420cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -214,6 +214,10 @@ def download_run(args):
parent_id = parent_of.get(p['id'], None) parent_id = parent_of.get(p['id'], None)
path = " ".join(names) path = " ".join(names)
# Some job names have the separator in them.
path = path.replace(os.sep, '_')
log_path = os.path.join(output_dir, '%s.log' % path) log_path = os.path.join(output_dir, '%s.log' % path)
if args.verbose: if args.verbose:
print(log_path) print(log_path)

Loading…
Cancel
Save