Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validate package existence in conda build --test #5614

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3306,7 +3306,8 @@ def test(
and not metadata.config.test_run_post
):
print("Nothing to test for:", test_package_name)
return True
# return False or raise an exception
raise CondaBuildUserError(f"No tests found for package: {test_package_name}")

if metadata.config.remove_work_dir:
for name, prefix in (
Expand Down
19 changes: 19 additions & 0 deletions news/5614-test-package-validation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Fixes non-existent package validation in conda build --test issue #5612. (#5614)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>