Lines Matching refs:tidx
249 def run_one_test(pm, args, index, tidx): argument
254 res = TestResult(tidx['id'], tidx['name'])
257 print("Test " + tidx["id"] + ": " + tidx["name"])
259 if 'skip' in tidx:
260 if tidx['skip'] == 'yes':
261 res = TestResult(tidx['id'], tidx['name'])
264 pm.call_pre_case(tidx, test_skip=True)
269 NAMES['TESTID'] = tidx['id']
271 pm.call_pre_case(tidx)
272 prepare_env(args, pm, 'setup', "-----> prepare stage", tidx["setup"])
277 (p, procout) = exec_cmd(args, pm, 'execute', tidx["cmdUnderTest"])
285 if (exit_code is None or exit_code != int(tidx["expExitCode"])):
287 print("exit: {}".format(int(tidx["expExitCode"])))
290 …res.set_failmsg('Command exited with {}, expected {}\n{}'.format(exit_code, tidx["expExitCode"], p…
296 str(tidx["matchPattern"]), re.DOTALL | re.MULTILINE)
297 (p, procout) = exec_cmd(args, pm, 'verify', tidx["verifyCmd"])
300 if len(match_index) != int(tidx["matchCount"]):
305 elif int(tidx["matchCount"]) != 0:
311 prepare_env(args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
341 pm.call_pre_suite(tcount, [tidx['id'] for tidx in testlist])
357 for tidx in testlist:
358 if "flower" in tidx["category"] and args.device == None:
364 res = TestResult(tidx['id'], tidx['name'])
370 badtest = tidx # in case it goes bad
371 res = run_one_test(pm, args, index, tidx)
378 res = TestResult(tidx['id'], tidx['name'])
386 format(ex_type, ex, index, tidx['id'], tidx['name'], stage))
404 for tidx in testlist[count - 1:]:
405 res = TestResult(tidx['id'], tidx['name'])