mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
scripts: Improve gui automation scripts.
This commit is contained in:
@@ -86,6 +86,8 @@ sub telnet {
|
||||
sub doCmd {
|
||||
my $self = shift;
|
||||
my $cmd = shift;
|
||||
my $nowait = shift;
|
||||
|
||||
#print "CMD[[$cmd]]\n";
|
||||
my $t = ${$self->{telnet}};
|
||||
if ( !$self->cli_send_silent() || (defined $ENV{'LOG_CLI'} && $ENV{'LOG_CLI'} ne "")) {
|
||||
@@ -93,6 +95,10 @@ sub doCmd {
|
||||
}
|
||||
$t->print($cmd);
|
||||
|
||||
if (defined($nowait) && ($nowait == 1)) {
|
||||
return "";
|
||||
}
|
||||
|
||||
my @rslt = $t->waitfor('/ >>RSLT:(.*)/');
|
||||
if ( !$self->cli_rcv_silent() ) {
|
||||
print "**************\n@rslt\n................\n\n";
|
||||
|
||||
Reference in New Issue
Block a user