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.
This updates the CLI to exit with error code 1 for the
list
andrun
commands if there ends up being no matches.The intention here is to prevent scenarios where
list
orrun
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 toriot
wasn't properly formed and no tests were run at all.