Commit 0e7aabe
committed
md/002: use --run option instead of "echo y"
When mdadm creates a new array, it asks questions to users in the
console, which is not suitable for automated test script runs. Then the
test case md/002 used "echo y" with pipe to answer the questions
automatically.
However, starting with mdadm version 4.4, the "echo y" approach no
longer works effectively, especially after a commit which introduced a new
question [1]. This caused the test case failure.
[1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?h=main&id=e97c4e18c847803016aa60066cb6e57c528d83a6
The --run option is now the recommended alternative because it directly
bypasses the questions. To avoid the failure, add the "--run" option to
the mdadm create commands instead of the "echo y".
Link: #201
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent 6b00475 commit 0e7aabe
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments