diff options
Diffstat (limited to 't')
-rw-r--r-- | t/00-check-config.t | 3 | ||||
-rw-r--r-- | t/00-check-we-are-staging.t | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/t/00-check-config.t b/t/00-check-config.t index 20f0fe8cf..00e782e74 100644 --- a/t/00-check-config.t +++ b/t/00-check-config.t @@ -16,7 +16,8 @@ use FixMyStreet; # load the config file and store the contents in a readonly hash my $example_config = YAML::LoadFile( FixMyStreet->path_to("conf/general.yml-example") ); -my $local_config = YAML::LoadFile( FixMyStreet->path_to("conf/general.yml") ); +my $CONF_FILE = $ENV{FMS_OVERRIDE_CONFIG} || 'general'; +my $local_config = YAML::LoadFile( FixMyStreet->path_to("conf/${CONF_FILE}.yml") ); # find all keys missing from each config my @missing_from_example = find_missing( $example_config, $local_config ); diff --git a/t/00-check-we-are-staging.t b/t/00-check-we-are-staging.t index a1da68798..4c9a255fe 100644 --- a/t/00-check-we-are-staging.t +++ b/t/00-check-we-are-staging.t @@ -14,7 +14,8 @@ use FixMyStreet; # load the config file and store the contents in a readonly hash -mySociety::Config::set_file( FixMyStreet->path_to("conf/general") ); +my $CONF_FILE = $ENV{FMS_OVERRIDE_CONFIG} || 'general'; +mySociety::Config::set_file( FixMyStreet->path_to("conf/${CONF_FILE}") ); BAIL_OUT( "Test suite modifies databases so should not be run on live servers" ) unless mySociety::Config::get('STAGING_SITE', undef); |