cuke: check exit code as last step, add step to non-existing file
This commit is contained in:
@@ -6,13 +6,15 @@ Feature: Command line options: invalid options
|
||||
|
||||
Scenario: Non-existing option
|
||||
When I run "osrm-routed --fly-me-to-the-moon"
|
||||
Then it should exit with code 255
|
||||
Then stdout should be empty
|
||||
And stderr should contain "exception"
|
||||
And stderr should contain "fly-me-to-the-moon"
|
||||
And it should exit with code 255
|
||||
|
||||
Scenario: Missing file
|
||||
When I run "osrm-routed over-the-rainbow.osrm"
|
||||
Then it should exit with code 255
|
||||
Then stdout should contain "over-the-rainbow.osrm"
|
||||
And stderr should contain "exception"
|
||||
And stderr should contain "does not exist"
|
||||
And stderr should contain "does not exist"
|
||||
And it should exit with code 255
|
||||
|
||||
Reference in New Issue
Block a user