Skip to content

Commit

Permalink
spectests: fail hard on missing test folders (#13913)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvanloon authored and rkapka committed Apr 30, 2024
1 parent 1be94c1 commit 03d977b
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 03d977b

Please sign in to comment.