aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestAppProve.pm
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2017-06-30 10:51:57 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-10 12:51:15 +0100
commit97fb9772bc96e82f2edb8a9191dd359b07a04fa7 (patch)
treec10acb19c6476a24d2832143b3fd0dd9e6f3d088 /perllib/FixMyStreet/TestAppProve.pm
parenteda7a2d88e13a89e22843203cf4f749c8679b4d7 (diff)
Add switch-site script for easily switching config
Given a set of config files of the format `conf/general-{cobrand}.yml` this script lets you easily create and recreate a symlink at `conf/general.yml` that points to the cobrand config of your choice. The test suite also then uses this naming convention.
Diffstat (limited to 'perllib/FixMyStreet/TestAppProve.pm')
-rw-r--r--perllib/FixMyStreet/TestAppProve.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/TestAppProve.pm b/perllib/FixMyStreet/TestAppProve.pm
index 806608b8b..f6e09fbe9 100644
--- a/perllib/FixMyStreet/TestAppProve.pm
+++ b/perllib/FixMyStreet/TestAppProve.pm
@@ -21,7 +21,7 @@ see bin/run-tests for usage
=cut
sub cleanup {
- unlink "conf/general.test-autogenerated.$$.yml";
+ unlink "conf/general-test-autogenerated.$$.yml";
}
sub signal_handler {
@@ -86,7 +86,7 @@ sub run {
$config->{FMS_DB_PASS} = '';
}
- my $config_out = "general.test-autogenerated.$$";
+ my $config_out = "general-test-autogenerated.$$";
path("conf/$config_out.yml")->spew( YAML::Dump($config) );
local $ENV{FMS_OVERRIDE_CONFIG} = $config_out;