Fix alternatives option test, chdirs on fail, spacing

This commit is contained in:
Lauren Budorick
2016-03-30 17:53:36 -07:00
committed by Patrick Niklaus
parent edb4b1366f
commit ee96cbfd00
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ Feature: Roundabout Instructions
| abcda | roundabout |
When I route I should get
| from | to | route | turns |
| from | to | route | turns |
| s | t | sa,tb | depart,roundabout-exit-1,arrive |
| s | u | sa,uc | depart,roundabout-exit-2,arrive |
| s | v | sa,vd | depart,roundabout-exit-3,arrive |
+2
View File
@@ -201,6 +201,7 @@ module.exports = function () {
exec(cmd, (err) => {
if (err) {
this.log(util.format('*** Exited with code %d', err.code), 'preprocess');
process.chdir('../');
return callback(this.ExtractError(err.code, util.format('osrm-extract exited with code %d', err.code)));
}
@@ -247,6 +248,7 @@ module.exports = function () {
exec(cmd, (err) => {
if (err) {
this.log(util.format('*** Exited with code %d', err.code), 'preprocess');
process.chdir('../');
return callback(this.ContractError(err.code, util.format('osrm-contract exited with code %d', err.code)));
}
+1 -1
View File
@@ -19,7 +19,7 @@ Feature: Alternative route
| ca | yes |
And the query options
| alternative | true |
| alternatives | true |
When I route I should get
| from | to | route | alternative |