Skip to content

Commit d0572e3

Browse files
committed
Revert "Tests: Properly catch all invalid artifacts"
This reverts commit cf80d58.
1 parent b824ed9 commit d0572e3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/gardenlinux/s3/s3_artifacts.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,6 @@ def upload_from_directory(
189189
"paths": [],
190190
}
191191

192-
# Catch any invalid artifacts
193-
bad_files = [
194-
f
195-
for f in artifacts_dir.iterdir()
196-
if not f.name.startswith(cname)
197-
and f.suffix not in [".release", ".requirements"]
198-
]
199-
if bad_files:
200-
raise RuntimeError(
201-
f"Artifact name '{bad_files[0].name}' does not start with cname '{cname}'"
202-
)
203-
204192
for artifact in artifacts_dir.iterdir():
205193
if not artifact.match(f"{cname}*"):
206194
continue

0 commit comments

Comments
 (0)