Skip to content

Commit

Permalink
fix: validate package existence in conda build --test
Browse files Browse the repository at this point in the history
  • Loading branch information
swap357 committed Feb 3, 2025
1 parent e5b060e commit 5a0bb5c
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 5a0bb5c

Please sign in to comment.