~aleteoryx/muditaos

fda43afcf5f149b55bd63b3800d2b59b44c005d7 — Marek Niepieklo 3 years ago b20e658
[MOS-273] Update Harness to detect Mudita Bell devices

Added detection of Mudita Harmony
3 files changed, 5 insertions(+), 5 deletions(-)

M test/get_os_log.py
M test/harness
M test/pytest/conftest.py
M test/get_os_log.py => test/get_os_log.py +1 -1
@@ 1,5 1,5 @@
#!/usr/bin/env python3
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

import sys

M test/harness => test/harness +1 -1
@@ 1,1 1,1 @@
Subproject commit fcb4287c5061b612d4ff68b0f86c49db5ded2998
Subproject commit 549ac3a09dab95223baa32084ff20afb340be9d5

M test/pytest/conftest.py => test/pytest/conftest.py +3 -3
@@ 1,4 1,4 @@
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

import time


@@ 121,8 121,8 @@ def harnesses():
    '''
    Automatically init at least two Pure phones
    '''
    found_pures = serial.find_Pures()
    harnesses = [Harness(pure) for pure in found_pures]
    connected_devices = serial.find_Devices()
    harnesses = [Harness(device) for device in connected_devices]
    if not len(harnesses) >= 2:
        pytest.skip("At least two phones are needed for this test")
    assert len(harnesses) >= 2