diff --git a/features/lib/osrm_loader.js b/features/lib/osrm_loader.js index 407ef99df..51410d228 100644 --- a/features/lib/osrm_loader.js +++ b/features/lib/osrm_loader.js @@ -107,7 +107,8 @@ class OSRMDatastoreLoader extends OSRMBaseLoader { } loadData (callback) { - this.scope.runBin('osrm-datastore', this.inputFile, this.scope.environment, (err) => { + const command_arguments = util.format('--dataset-name=%s %s', this.scope.DATASET_NAME, this.inputFile); + this.scope.runBin('osrm-datastore', command_arguments, this.scope.environment, (err) => { if (err) return callback(new Error('*** osrm-datastore exited with ' + err.code + ': ' + err)); callback(); }); @@ -116,7 +117,7 @@ class OSRMDatastoreLoader extends OSRMBaseLoader { osrmUp (callback) { if (this.osrmIsRunning()) return callback(); - const command_arguments = util.format('--shared-memory=1 -i %s -p %d -a %s', this.scope.OSRM_IP, this.scope.OSRM_PORT, this.scope.ROUTING_ALGORITHM); + const command_arguments = util.format('--dataset-name=%s -s -i %s -p %d -a %s', this.scope.DATASET_NAME, this.scope.OSRM_IP, this.scope.OSRM_PORT, this.scope.ROUTING_ALGORITHM); this.child = this.scope.runBin('osrm-routed', command_arguments, this.scope.environment, (err) => { if (err && err.signal !== 'SIGINT') { this.child = null; diff --git a/features/support/env.js b/features/support/env.js index acfa3381d..7866e0756 100644 --- a/features/support/env.js +++ b/features/support/env.js @@ -27,6 +27,7 @@ module.exports = function () { return callback(new Error('*** '+stxxl_config+ 'does not exist')); } + this.DATASET_NAME = 'cucumber'; this.PLATFORM_WINDOWS = process.platform.match(/^win.*/); this.DEFAULT_ENVIRONMENT = Object.assign({STXXLCFG: stxxl_config}, process.env); this.DEFAULT_PROFILE = 'bicycle';