Skip to content

Commit

Permalink
avoid file clobbering in okify (#8970)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Dec 4, 2024
2 parents e7ae046 + eba67c0 commit 56cccb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jwst/scripts/okify_regtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import tempfile
from argparse import ArgumentParser
from contextlib import contextmanager
from glob import glob
from pathlib import Path

import asdf
Expand Down Expand Up @@ -110,11 +109,10 @@ def artifactory_get_breadcrumbs(build_number, suffix):
args = list(
['jfrog', 'rt', 'dl']
+ [f"{ARTIFACTORY_REPO}/*_GITHUB_CI_*-{build_number}/*{suffix}"]
+ ['--flat']
)
subprocess.run(args, check=True, capture_output=True)

return sorted(glob(f'*{suffix}'))
return sorted([str(p) for p in Path().rglob(f'*{suffix}')])


def artifactory_get_build_artifacts(build_number):
Expand Down

0 comments on commit 56cccb9

Please sign in to comment.