Skip to content

Commit

Permalink
avoid file clobbering in okify
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 22, 2024
1 parent 86336dd commit eba67c0
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}')])

Check warning on line 115 in jwst/scripts/okify_regtests.py

View check run for this annotation

Codecov / codecov/patch

jwst/scripts/okify_regtests.py#L115

Added line #L115 was not covered by tests


def artifactory_get_build_artifacts(build_number):
Expand Down

0 comments on commit eba67c0

Please sign in to comment.