Skip to content

Commit

Permalink
Improve NetVM availability checking
Browse files Browse the repository at this point in the history
Signed-off-by: Mariia Azbeleva <[email protected]>
  • Loading branch information
azbeleva committed Oct 20, 2023
1 parent e92695e commit d583230
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Robot-Framework/resources/ssh_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ Check if ssh is ready on netvm
[Arguments] ${timeout}=15
${is_ready} = Set Variable False
FOR ${i} IN RANGE ${timeout}
Write nc -zvw3 192.168.101.1 22
${output} Read Until ghaf-host
${output} ${rc} Execute Command nc -zvw3 192.168.101.1 22 return_rc=True
${status} Run Keyword And Return Status
... Should Contain ${output} Connection to ${netvm_ip} 22 port [tcp/ssh] succeeded!
... Should Be Equal As Integers ${rc} 0
IF ${status}
${is_ready} = Set Variable True
BREAK
Expand Down

0 comments on commit d583230

Please sign in to comment.