Skip to content

Commit

Permalink
fix timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
Noordsestern committed Aug 30, 2024
1 parent 3294b8d commit b090f61
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion atest/execute_command.robot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ Library DateTime
Execute Timeout
[Documentation] FAIL SSHClientException: Timed out in 3 seconds
... LOG 1:2 INFO GLOB: *Command no. 1*Command no. 2*Command no. 3*
Execute Command for i in {1..10}; do echo "Command no. $i"; sleep 1; done timeout=3s output_if_timeout=True
TRY
Execute Command for i in {1..10}; do echo "Command no. $i"; sleep 1; done timeout=3s output_if_timeout=True
Fail Expected timeout did not occur.
EXCEPT SSHClientException: Timed out in 3 seconds
Log Test passed
EXCEPT AS ${exception}
Fail Unexpected exception: ${exception}
END

Execute Command With Defaults
${stdout} = Execute Command ${REMOTE TEST ROOT}/${TEST SCRIPT NAME}
Expand Down

0 comments on commit b090f61

Please sign in to comment.