Function
MustWaitDnoteCmd
(t *testing.T, opts RunDnoteCmdOptions, runFunc func(io.Reader, io.WriteCloser) error, binaryName string, arg ...string)
Source from the content-addressed store, hash-verified
| 217 | } |
| 218 | |
| 219 | func MustWaitDnoteCmd(t *testing.T, opts RunDnoteCmdOptions, runFunc func(io.Reader, io.WriteCloser) error, binaryName string, arg ...string) string { |
| 220 | output, err := WaitDnoteCmd(t, opts, runFunc, binaryName, arg...) |
| 221 | if err != nil { |
| 222 | t.Fatal(err) |
| 223 | } |
| 224 | |
| 225 | return output |
| 226 | } |
| 227 | |
| 228 | // MustWaitForPrompt waits for an expected prompt with a default timeout. |
| 229 | // Fails the test if the prompt is not found or an error occurs. |