cmd/gogio: dump child program outputs to test log

Without logging, a failing child result in nondescript errors such as

windows_test.go:126: exit status 2

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-28 16:18:47 +02:00
parent e49afe7fa1
commit 217f3f4de6
+1
View File
@@ -268,6 +268,7 @@ func (d *driverBase) waitForFrame() {
scanner := bufio.NewScanner(d.output)
for scanner.Scan() {
line := scanner.Text()
d.Log(line)
if strings.Contains(line, "gio frame ready") {
d.frameNotifs <- true
}