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 e942f6e420
commit a4d6544764
3 changed files with 4 additions and 2 deletions

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 |

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)));
}

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 |