Some versions of the Debian packages were missing the install of the
test-screenshot.png file used by the test driver's screenshot impl.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
domain_test.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/domain_test.go b/domain_test.go
index dd46c4d..bf12603 100644
--- a/domain_test.go
+++ b/domain_test.go
@@ -660,6 +660,11 @@ func TestDomainScreenshot(t *testing.T) {
defer stream.Free()
mime, err := dom.Screenshot(stream, 0, 0)
if err != nil {
+ msg := "test-screenshot.png': No such file or directory"
+ if strings.Contains(err.Error(), msg) {
+ t.Skip("test-screenshot.png doesn't exist")
+ return
+ }
t.Fatalf("failed to take screenshot: %s", err)
}
if strings.Index(mime, "image/") != 0 {
--
2.26.2