forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add param timeout to ansible library shell_cmds (sonic-net#8931)
What is the motivation for this PR? 1. Add a parameter timeout to ansible library shell_cmds. The default value is 0 which means no limitation. 2. Set the timeout of some commands to 30s to avoid costing too much time, also updated the command to adapt the timeout wrapper. How did you verify/test it? 1. Verified by run test_pretest and test_memory_exhaustion on physical testbeds. 2. Verified by PR test. Signed-off-by: Zhijian Li <zhijianli@microsoft.com>
- Loading branch information
1 parent
8fcb70d
commit b9450fa
Showing
3 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters