Skip to content

Commit

Permalink
spectests: fail hard on missing test folders (#13913)
Browse files Browse the repository at this point in the history
(cherry picked from commit fdbb513)
  • Loading branch information
prestonvanloon committed May 31, 2024
1 parent 1fb4c38 commit f4f00e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testing/spectest/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ func UnmarshalYaml(y []byte, dest interface{}) error {
func TestFolders(t testing.TB, config, forkOrPhase, folderPath string) ([]os.DirEntry, string) {
testsFolderPath := path.Join("tests", config, forkOrPhase, folderPath)
filepath, err := bazel.Runfile(testsFolderPath)
if err != nil {
return nil, ""
}
require.NoError(t, err)
testFolders, err := os.ReadDir(filepath)
require.NoError(t, err)

Expand Down

0 comments on commit f4f00e8

Please sign in to comment.