From: Chris Weyl Date: Tue, 7 Apr 2015 00:17:38 +0000 (-0700) Subject: tests: init_schema now accepts a db_dir parameter X-Git-Tag: v1.001_030~6^2^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc44796e85b4949521f5c79d8544b11b2680b75f;p=dbsrgits%2FDBIx-Class-Fixtures.git tests: init_schema now accepts a db_dir parameter ...so we can use different directories for testing, and hopefully run tests in parallel. --- diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index 08c0e27..2bf19f8 100755 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -46,7 +46,11 @@ sub init_schema { my $self = shift; my %args = @_; - my $db_file = "t/var/DBIxClass.db"; + my $db_file + = $args{db_dir} + ? "$args{db_dir}/DBIxClass.db" + : "t/var/DBIxClass.db" + ; mkdir("t/var") unless -d "t/var"; if ( !$args{no_deploy} ) {