diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-11-08 13:03:41 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-11-08 13:03:41 +0000 |
commit | 15eb263e54ac53ffc909e98faf102c000b96e503 (patch) | |
tree | af3456f98f25b4b637d77a6eb147ef5c5eda584b /yarn | |
parent | 8895245fb09597f9d95611264b40dd559058c5a2 (diff) | |
download | cmdtest-15eb263e54ac53ffc909e98faf102c000b96e503.tar.gz |
Give error if --run arg does not match a scenario
Diffstat (limited to 'yarn')
-rwxr-xr-x | yarn | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -292,6 +292,10 @@ class YarnRunner(cliapp.Application): if matches(s.name, name) and s not in result: result.append(s) break + else: + raise cliapp.AppException( + 'Requested scenario %s does not exist' % + name) return result return scenarios |