mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
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:
@@ -268,6 +268,7 @@ func (d *driverBase) waitForFrame() {
|
|||||||
scanner := bufio.NewScanner(d.output)
|
scanner := bufio.NewScanner(d.output)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
line := scanner.Text()
|
||||||
|
d.Log(line)
|
||||||
if strings.Contains(line, "gio frame ready") {
|
if strings.Contains(line, "gio frame ready") {
|
||||||
d.frameNotifs <- true
|
d.frameNotifs <- true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user