DataDog / riot

A Python virtual env builder and command runner
https://ddriot.readthedocs.io/
Apache License 2.0
23 stars 15 forks source link

fix error out if list or run find no matching environments to run #223

Closed romainkomorndatadog closed 7 months ago

romainkomorndatadog commented 11 months ago

This updates the CLI to exit with error code 1 for the list and run commands if there ends up being no matches.

The intention here is to prevent scenarios where list or run end up matching nothing, giving the caller (or in the case motivating this PR: CI runs) the false impression that tests succeeded when, in fact, it is more likely that the pattern passed to riot wasn't properly formed and no tests were run at all.

romainkomorndatadog commented 7 months ago

I'm going to close this in favor of "we're moving to hatch" context.