fix: ignore if testcase config is not specified

This commit is contained in:
debugtalk
2022-07-04 18:47:36 +08:00
parent 9b0e27b29e
commit e3edbf9f04

View File

@@ -61,7 +61,7 @@ func (path *TestCasePath) ToTestCase() (*TestCase, error) {
return nil, err
}
if tc.Config == nil {
return nil, errors.New("incorrect testcase file format, expected config in file")
tc.Config = &TConfig{Name: "testcase name"}
}
err = tc.MakeCompat()