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`
This commit is contained in:
Sam Doran
2021-08-11 23:33:23 -04:00
committed by GitHub
parent 7450e87615
commit 5af0420cab

View File

@@ -214,6 +214,10 @@ def download_run(args):
parent_id = parent_of.get(p['id'], None)
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)
if args.verbose:
print(log_path)