projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1afefc5
)
fix port arguments
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 May 2011 19:06:43 +0000
(21:06 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 25 May 2011 19:06:43 +0000
(21:06 +0200)
t/ZTEMSAN.t
patch
|
blob
|
history
diff --git
a/t/ZTEMSAN.t
b/t/ZTEMSAN.t
index
b81bfad
..
3f4f2b5
100755
(executable)
--- a/
t/ZTEMSAN.t
+++ b/
t/ZTEMSAN.t
@@
-10,10
+10,12
@@
use lib 'lib';
use_ok 'H1::ZTEMSAN';
my $ip = shift @ARGV || '10.99.2.115';
+my @ports = @ARGV;
+@ports = qw( 0/15/0 0/16/0 ) unless @ports;
ok my $o = H1::ZTEMSAN->new( ip => $ip ), "new $ip";
-foreach my $port ( @
ARGV || qw( 0/15/0 0/16/0 )
) {
+foreach my $port ( @
ports
) {
ok my $hash = $o->hash( $port ), "port $port";
diag dump $hash;