summaryrefslogtreecommitdiff
path: root/t/43-dbtest.t
diff options
context:
space:
mode:
Diffstat (limited to 't/43-dbtest.t')
-rw-r--r--t/43-dbtest.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/43-dbtest.t b/t/43-dbtest.t
index 812c382b..9cc9fd15 100644
--- a/t/43-dbtest.t
+++ b/t/43-dbtest.t
@@ -1,11 +1,17 @@
use Test::More;
use strict;
-if (!defined $ENV{PGDATABASE}){
- plan skip_all => 'PGDATABASE Environment Variable not set up';
+if (!defined $ENV{LSMB_TEST_DB}){
+ plan skip_all => 'Skipping all. Told not to test db.';
}
else {
plan tests => 50;
+ if (defined $ENV{LSMB_NEW_DB}){
+ $ENV{PGDATABASE} = $ENV{LSMB_NEW_DB};
+ }
+ if (!defined $ENV{PGDATABASE}){
+ die "We were told to run tests, but no database specified!";
+ }
}
my @testscripts = qw(Account Business_type Company Draft Payment