use columns.table and test it since web interface uses it
[APKPM.git] / t / ZTEMSAN.t
index b81bfad..3f4f2b5 100755 (executable)
@@ -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;