Make goexpect more verbose for failing tests
With the verbose flag, goexpect will log all sends and matches, which is very useful to debug failed tests.
The output of successful tests is discarded, so this shouldn't have a big impact on log sizes.
@@ -2811,6 +2811,8 @@ func NewConsoleExpecter(virtCli kubecli.KubevirtClient, vmi *v1.VirtualMachineIn
}()
opts = append(opts, expect.SendTimeout(timeout))
+ opts = append(opts, expect.Verbose(true))
+ opts = append(opts, expect.VerboseWriter(GinkgoWriter))
return expect.SpawnGeneric(&expect.GenOptions{
In: vmiWriter,
Out: expecterReader,
