Fix alternatives option test, chdirs on fail, spacing
This commit is contained in:
parent
e942f6e420
commit
a4d6544764
@ -201,6 +201,7 @@ module.exports = function () {
|
|||||||
exec(cmd, (err) => {
|
exec(cmd, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
this.log(util.format('*** Exited with code %d', err.code), 'preprocess');
|
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)));
|
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) => {
|
exec(cmd, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
this.log(util.format('*** Exited with code %d', err.code), 'preprocess');
|
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)));
|
return callback(this.ContractError(err.code, util.format('osrm-contract exited with code %d', err.code)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ Feature: Alternative route
|
|||||||
| ca | yes |
|
| ca | yes |
|
||||||
|
|
||||||
And the query options
|
And the query options
|
||||||
| alternative | true |
|
| alternatives | true |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | alternative |
|
| from | to | route | alternative |
|
||||||
|
Loading…
Reference in New Issue
Block a user