Do not crash in t/tools.t if postgres is not running
[gruntmaster-data.git] / lib / Gruntmaster / App.pm
index c867f70b6738a88dfc0ad6c96213015d2ddcc35a..28c80e29d9527f4e2742dee7b4169ce5e4374830 100644 (file)
@@ -21,7 +21,10 @@ sub global_opt_spec {
 
 sub table { shift->global_options->{table} }
 
-dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:';
+sub run {
+       dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:';
+       shift->SUPER::run(@_);
+}
 
 1;
 __END__
This page took 0.009748 seconds and 4 git commands to generate.