Lines Matching defs:testcase
37 // 'fellows' are optional, these testcases may be tested with target testcase together.
52 // These fellows can be tested with target testcase together in this term to accelerate testing.
53 func findOutTheFirstFail(m pkg.Manager, t tester.Tester, testcase string, steps []string, fellows ...string) (string, error) {
111 pass, fellows, err = flashAndTest(m, t, steps[index], testcase, ctx, fellows...)
114 logrus.Warnf("abort to flash %s and test %s: %v", steps[index], testcase, err)
116 logrus.Errorf("flash %s and test %s fail: %v", steps[index], testcase, err)
128 return findOutTheFirstFail(m, t, testcase, steps[success+1:fail+1], fellows...)
131 func flashAndTest(m pkg.Manager, t tester.Tester, pkg string, testcase string, ctx context.Context, fellows ...string) (bool, []string, error) {
133 if result, found := utils.CacheGet("testcase_result", testcase+"__at__"+pkg); found {
134 logrus.Infof("get testcase result %s from cache done, result is %s", result.(tester.Result).TestCaseName, result.(tester.Result).Status)
137 logrus.Infof("get testcase result %s from cache done, result is %s", fellowResult.(tester.Result).TestCaseName, fellowResult.(tester.Result).Status)
154 results, err = t.DoTestCases(device, append(fellows, testcase), ctx)
161 logrus.Infof("do testcase %s at %s done, result is %s", result.TestCaseName, device, result.Status)
162 if result.TestCaseName == testcase {
168 if result.TestCaseName != testcase && result.Status == testcaseStatus {