fix: ignore if testcase config is not specified

This commit is contained in:
debugtalk
2022-07-04 18:47:36 +08:00
parent 5d8f934bd1
commit 40e3c84b06

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()