Esempio n. 1
0
def do_autoclassify(job, test_failure_lines, matchers, status="testfailed"):

    job.result = status
    job.save()

    register_matchers(*matchers)

    autoclassify(job.id)

    for item in test_failure_lines:
        item.refresh_from_db()
def do_autoclassify(job, test_failure_lines, matchers, status="testfailed"):

    job.result = status
    job.save()

    register_matchers(*matchers)

    autoclassify(job.id)

    for item in test_failure_lines:
        item.refresh_from_db()
def do_autoclassify(jm, job, test_failure_lines, matchers, status="testfailed"):

    jm.execute(
        proc="jobs_test.updates.set_job_result",
        placeholders=[status, job.project_specific_id]
    )

    register_matchers(*matchers)

    autoclassify(job.id)

    for item in test_failure_lines:
        item.refresh_from_db()
Esempio n. 4
0
def do_autoclassify(jm,
                    job,
                    test_failure_lines,
                    matchers,
                    status="testfailed"):

    jm.execute(proc="jobs_test.updates.set_job_result",
               placeholders=[status, job.project_specific_id])

    register_matchers(*matchers)

    autoclassify(job.id)

    for item in test_failure_lines:
        item.refresh_from_db()