Lines Matching refs:tidx

249 def verify_by_json(procout, res, tidx, args, pm):  argument
257 matchJSON = json.loads(json.dumps(tidx['matchJSON']))
353 def run_one_test(pm, args, index, tidx): argument
358 res = TestResult(tidx['id'], tidx['name'])
361 print("Test " + tidx["id"] + ": " + tidx["name"])
363 if 'skip' in tidx:
364 if tidx['skip'] == 'yes':
365 res = TestResult(tidx['id'], tidx['name'])
368 pm.call_pre_case(tidx, test_skip=True)
372 if 'dependsOn' in tidx:
375 (p, procout) = exec_cmd(args, pm, 'execute', tidx['dependsOn'])
378 res = TestResult(tidx['id'], tidx['name'])
381 pm.call_pre_case(tidx, test_skip=True)
386 NAMES['TESTID'] = tidx['id']
388 pm.call_pre_case(tidx)
389 prepare_env(args, pm, 'setup', "-----> prepare stage", tidx["setup"])
394 (p, procout) = exec_cmd(args, pm, 'execute', tidx["cmdUnderTest"])
402 if (exit_code is None or exit_code != int(tidx["expExitCode"])):
404 print("exit: {}".format(int(tidx["expExitCode"])))
407 …res.set_failmsg('Command exited with {}, expected {}\n{}'.format(exit_code, tidx["expExitCode"], p…
412 (p, procout) = exec_cmd(args, pm, 'verify', tidx["verifyCmd"])
414 if 'matchJSON' in tidx:
415 verify_by_json(procout, res, tidx, args, pm)
416 elif 'matchPattern' in tidx:
418 str(tidx["matchPattern"]), re.DOTALL | re.MULTILINE)
420 if len(match_index) != int(tidx["matchCount"]):
428 elif int(tidx["matchCount"]) != 0:
434 prepare_env(args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
464 pm.call_pre_suite(tcount, [tidx['id'] for tidx in testlist])
480 for tidx in testlist:
481 if "flower" in tidx["category"] and args.device == None:
487 res = TestResult(tidx['id'], tidx['name'])
494 badtest = tidx # in case it goes bad
495 res = run_one_test(pm, args, index, tidx)
502 res = TestResult(tidx['id'], tidx['name'])
510 format(ex_type, ex, index, tidx['id'], tidx['name'], stage))
528 for tidx in testlist[count - 1:]:
529 res = TestResult(tidx['id'], tidx['name'])