mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
skip tests that are missing full binaries
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
76619b25b6
commit
8d9f1a8c43
@ -63,6 +63,10 @@ func SnippetOrBinary(t *testing.T, path string, requireBinary bool) string {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if v.SnippetPath != "" && !v.IsConfigured {
|
||||||
|
t.Skip("no binary found, but is covered by a snippet. Please add this case to the 'binary/test-fixtures/config.yaml' and recreate the snippet")
|
||||||
|
}
|
||||||
|
|
||||||
t.Fatalf("no binary found for %q", path)
|
t.Fatalf("no binary found for %q", path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user