Lines Matching refs:ctx
32 ctx context.Context member
76 for _, ctx := range contexts {
77 if ctx.ctx.Value("index").(int) < success {
78 ctx.fn()
84 for _, ctx := range contexts {
85 if ctx.ctx.Value("index").(int) > fail {
86 ctx.fn()
101 ctx, fn := context.WithCancel(context.WithValue(context.TODO(), "index", index))
102 contexts = append(contexts, cancelCtx{ctx: ctx, fn: fn})
104 go func(index int, ctx context.Context) {
111 pass, fellows, err = flashAndTest(m, t, steps[index], testcase, ctx, fellows...)
121 }(index, ctx)
131 func flashAndTest(m pkg.Manager, t tester.Tester, pkg string, testcase string, ctx context.Context,…
148 if err := m.Flash(device, pkg, ctx); err != nil && !errors.Is(err, context.Canceled) {
151 if err = t.Prepare(m.PkgDir(pkg), device, ctx); err != nil {
154 results, err = t.DoTestCases(device, append(fellows, testcase), ctx)