set OSRM_PROFILE to force profile when running cuke tests
This commit is contained in:
parent
dba825d829
commit
999211ed9c
@ -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();
|
||||
});
|
||||
|
@ -44,6 +44,8 @@ module.exports = function () {
|
||||
|
||||
this.OSRM_PORT = process.env.OSRM_PORT && parseInt(process.env.OSRM_PORT) || 5000;
|
||||
this.HOST = 'http://127.0.0.1:' + this.OSRM_PORT;
|
||||
|
||||
this.OSRM_PROFILE = process.env.PROFILE
|
||||
|
||||
if (this.PLATFORM_WINDOWS) {
|
||||
this.TERMSIGNAL = 9;
|
||||
|
@ -22,7 +22,7 @@ module.exports = function () {
|
||||
});
|
||||
|
||||
this.BeforeFeature((feature, callback) => {
|
||||
this.profile = this.DEFAULT_PROFILE;
|
||||
this.profile = this.OSRM_PROFILE || this.DEFAULT_PROFILE;
|
||||
this.profileFile = path.join(this.PROFILES_PATH, this.profile + '.lua');
|
||||
this.setupFeatureCache(feature);
|
||||
callback();
|
||||
|
Loading…
Reference in New Issue
Block a user