internal/screentest: log screenshot errors

Adds log output for screenshot errors so they visible
before all testcases complete.

Change-Id: Ida229f256164e16d28fdeedf3671012976659bf3
Reviewed-on: https://go-review.googlesource.com/c/website/+/379135
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
This commit is contained in:
Jamal Carvalho 2022-01-18 15:04:23 +00:00 коммит произвёл Jamal Carvalho
Родитель e26b9f0290
Коммит ec11697842
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -638,6 +638,7 @@ func (tc *testcase) run(ctx context.Context, update bool) (err error) {
return nil
})
if err := g.Wait(); err != nil {
fmt.Fprint(&tc.output, err)
return err
}
result := imgdiff.Diff(*screenA, *screenB, &imgdiff.Options{