Commit d41d228
Stabilize test_reload_dpu.py (sonic-net#21782)
Enhancement is for the switch memory exhaustion and kernel panic test
cases.
1. Increase DUT_ABSENT_TIMEOUT_FOR_MEMORY_EXHAUSTION as it takes time to
exhaust the memory.
2. Fail the test if the wait_for ssh shutdown fails.
3. Use a shorter retry delay in the common method
ssh_connection_with_retry. The check happens after the delay, if the
delay is bigger than the timeout, this wait_for always fails. See
ansible document:
https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/wait_for_module.html.
Signed-off-by: Cong Hou <congh@nvidia.com>
Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>1 parent 1ec674f commit d41d228
2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
| 740 | + | |
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | | - | |
| 166 | + | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
0 commit comments