summaryrefslogtreecommitdiff
path: root/t/lib/test_account.pl
diff options
context:
space:
mode:
authorivan <ivan>2011-01-12 03:19:59 +0000
committerivan <ivan>2011-01-12 03:19:59 +0000
commite8e126d8fe17184706729f0b01b223834ca5bc91 (patch)
tree9aaae46b38963e690c8fd89a29ad5a177d229128 /t/lib/test_account.pl
parent2d21621e966719b6769e5546c99e9f3b664213fd (diff)
test updates, turn down debugging verbosityHEADmaster
Diffstat (limited to 't/lib/test_account.pl')
-rw-r--r--t/lib/test_account.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/lib/test_account.pl b/t/lib/test_account.pl
index 4b316db..b4fa603 100644
--- a/t/lib/test_account.pl
+++ b/t/lib/test_account.pl
@@ -12,9 +12,16 @@ sub test_account_or_skip {
sub test_account {
open TEST_ACCOUNT, "t/test_account" or return;
- my($login, $password) = <TEST_ACCOUNT>;
+ my($login, $password, $hostport) = <TEST_ACCOUNT>;
chomp $login;
chomp $password;
+ chomp $hostport;
+
+ if ( $hostport =~ /^\s*([\w\.]+)(:(\d+))?\s*$/ ) {
+ my($host, $port) = ($1, $3);
+ $Net::GlobalPOPs::MediaServicesAPI::HOST = $host;
+ $Net::GlobalPOPs::MediaServicesAPI::PORT = $port;
+ }
return($login, $password);
}