Move config handling to API
[videosite.git] / videosite-test.pl
index a0b71b9..34b6f52 100755 (executable)
@@ -49,14 +49,14 @@ sub ploader {
 }
 
 sub connectors {
-    my $c = {-name => 'environment', -schemas => {}};
+    my $c = {name => 'environment', schemas => {}};
 
     if (exists($ENV{'http_proxy'})) {
-        $c->{-schemas}->{'http'} = $ENV{'http_proxy'}
+        $c->{schemas}->{'http'} = $ENV{'http_proxy'}
     }
 
     if (exists($ENV{'https_proxy'})) {
-        $c->{-schemas}->{'https'} = $ENV{'https_proxy'}
+        $c->{schemas}->{'https'} = $ENV{'https_proxy'}
     }
 
     return ( $c );
@@ -97,6 +97,8 @@ foreach (@g, $f) {
     }
 }
 
+select(STDOUT);
+$| = 1;
 printf("Doing self tests:\n");
 foreach(@g) {
     my $r;