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
@@ -12,6 +12,9 @@ import (
func TestReanimatorExport_RedfishExampleDoesNotDuplicateCPUs(t *testing.T) {
payload, err := os.ReadFile(filepath.Join("..", "..", "example", "2026-03-11 (SYS-821GE-TNHR) - A514359X5C08846.zip"))
if err != nil {
if os.IsNotExist(err) {
t.Skip("optional example bundle is not present")
}
t.Fatalf("read example bundle: %v", err)
}