skip tests that are missing full binaries

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2023-12-22 14:34:37 -05:00
parent 76619b25b6
commit 8d9f1a8c43

View File

@ -63,6 +63,10 @@ func SnippetOrBinary(t *testing.T, path string, requireBinary bool) string {
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)
}
}