예제 #1
0
파일: diff.py 프로젝트: dalinhuang/demodemo
def diff_test_build(build, settings, param=""):
    max_search_build = settings.single_build == "1" and 1 or 10    
    log_list = RobotResult.all().filter("build =", build)
    
    logging.info("start diff build:%s, max_search_build=%s" %(build.build_name, max_search_build))
    
    return diff_multi_build(build, log_list, settings, max_search_build)
예제 #2
0
파일: diff.py 프로젝트: dalinhuang/demodemo
def fetch_diff_from_build(build, original_list, result):
    logging.info("fetch diff log:%s, %s" %(build.build_name, build.create_date))
    des_list = RobotResult.all().filter("build =", build)
    testcase = dict(((e.reportid, e) for e in des_list))
    
    not_found = []
    for log in original_list:
        matched = testcase.get(log.reportid, None)
        if matched is None: 
            not_found.append(log)
        else:
            result[log.uuid] = DiffResult(log, matched)
    
    return not_found