Commit 0b46af1
committed
fix(tests): correct mock responses to match shell detection logic
The detect_available_shell() function checks for 'test' in response,
not 'exists'. Updated all test mocks to return 'test' instead of 'exists'
to match the implementation's expectations.
Changes:
- test_detect_available_shell_finds_bash: 'exists' -> 'test'
- test_detect_available_shell_fallback_to_sh: 'exists' -> 'test'
- test_detect_available_shell_fallback_to_busybox: 'exists' -> 'test'
- test_exec_with_shell_fallback_detects_persistent_shell_error: 'exists' -> 'test'
- test_exec_with_shell_fallback_retries_on_error: 'exists' -> 'test'
- test_exec_with_shell_fallback_fails_after_max_retries: 'exists' -> 'test'
This ensures tests properly validate the shell detection and fallback logic.
Signed-off-by: NETIZEN-11 <niteshkumar121411@gmail.com>1 parent 2ccd2f6 commit 0b46af1
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments