Пример #1
0
def run_final_test(port, board, mac):
    if board == 'LoPy':
        import run_final_lopy_test as run_test
    else:
        import run_final_sipy_test as run_test

    try:
        if not run_test.test_board(port, mac, fw_version.number):
            # same trick to give feedback to the main thread
            working_threads[port] = None
    except Exception:
        working_threads[port] = None
Пример #2
0
def run_qa_test(port, board):
    global working_threads

    if board == 'LoPy':
        import run_qa_lopy_test as run_test
    elif board == 'SiPy':
        import run_qa_sipy_test as run_test
    else:
        import run_qa_wipy_test as run_test

    try:
        if not run_test.test_board(port, fw_version.number):
            # same trick to give feedback to the main thread
            working_threads[port] = None
    except Exception:
        working_threads[port] = None
Пример #3
0
def run_initial_test(port, board):
    global working_threads

    if board == 'LoPy':
        import run_initial_lopy_test as run_test
    elif board == 'LoPy4':
        import run_initial_lopy4_test as run_test
    elif board == 'SiPy':
        import run_initial_sipy_test as run_test
    else:
        import run_initial_wipy_test as run_test

    try:
        if not run_test.test_board(port):
            # same trick to give feedback to the main thread
            working_threads[port] = None
    except Exception:
        working_threads[port] = None