test: make portable fixtures optional and cover xigmanas

This commit is contained in:
2026-09-12 16:42:13 +03:00
parent a5c77db9c6
commit cf9c6b8909
5 changed files with 93 additions and 5 deletions
@@ -186,6 +186,9 @@ func loadRawExportTreeFromExampleZip(t *testing.T, name string) map[string]inter
path := filepath.Join("..", "..", "..", "example", name)
f, err := os.Open(path)
if err != nil {
if os.IsNotExist(err) {
t.Skipf("optional example zip %s is not present", path)
}
t.Fatalf("open example zip %s: %v", path, err)
}
defer f.Close()