set OSRM_PROFILE to force profile when running cuke tests

This commit is contained in:
Emil Tin
2017-09-18 16:18:07 +02:00
committed by Patrick Niklaus
parent dba825d829
commit 999211ed9c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ var OSM = require('../lib/osm');
module.exports = function () {
this.Given(/^the profile "([^"]*)"$/, (profile, callback) => {
this.profile = profile;
this.profile = this.OSRM_PROFILE || profile;
this.profileFile = path.join(this.PROFILES_PATH, this.profile + '.lua');
callback();
});