cuke: fix test for -v on travis
This commit is contained in:
parent
3ccd3b5650
commit
179f53b21b
@ -1,5 +1,8 @@
|
|||||||
@routing @options
|
@routing @options
|
||||||
Feature: Command line options: version
|
Feature: Command line options: version
|
||||||
|
# the regex will match these two formats:
|
||||||
|
# v0.3.7.0 # this is the normal format when you build from a git clone
|
||||||
|
# -128-NOTFOUND # if you build from a shallow clone (used on Travis)
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
@ -8,12 +11,12 @@ Feature: Command line options: version
|
|||||||
When I run "osrm-routed --v"
|
When I run "osrm-routed --v"
|
||||||
Then stderr should be empty
|
Then stderr should be empty
|
||||||
And stdout should contain 1 line
|
And stdout should contain 1 line
|
||||||
And stdout should contain /v\d{1,2}\.\d{1,2}\.\d{1,2}/
|
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
||||||
And it should exit with code 0
|
And it should exit with code 0
|
||||||
|
|
||||||
Scenario: Version, long
|
Scenario: Version, long
|
||||||
When I run "osrm-routed --version"
|
When I run "osrm-routed --version"
|
||||||
Then stderr should be empty
|
Then stderr should be empty
|
||||||
And stdout should contain 1 line
|
And stdout should contain 1 line
|
||||||
And stdout should contain /v\d{1,2}\.\d{1,2}\.\d{1,2}/
|
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
||||||
And it should exit with code 0
|
And it should exit with code 0
|
||||||
|
Loading…
Reference in New Issue
Block a user