Skip to content

Commit

Permalink
[microTVM] Fix platform name for qemu_x86 in Zephyr AOT tests (apache…
Browse files Browse the repository at this point in the history
…#8762)

Currently two Zephyr AOT tests (test_tflite and test_qemu_make_fail) are
not running when qemu_x86 platform is selected because the platform name
is wrongly listed as 'host' in the match list for not skipping these
tests. This commit fixes it.

Signed-off-by: Gustavo Romero <[email protected]>
  • Loading branch information
gromero authored Aug 23, 2021
1 parent 0a1eae8 commit 10fca9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _get_message(fd, expr: str, timeout_sec: int):
def test_tflite(temp_dir, platform, west_cmd, tvm_debug):
"""Testing a TFLite model."""

if platform not in ["host", "mps2_an521", "nrf5340dk", "stm32l4r5zi_nucleo", "zynq_mp_r5"]:
if platform not in ["qemu_x86", "mps2_an521", "nrf5340dk", "stm32l4r5zi_nucleo", "zynq_mp_r5"]:
pytest.skip(msg="Model does not fit.")

model, zephyr_board = PLATFORMS[platform]
Expand Down Expand Up @@ -220,7 +220,7 @@ def test_tflite(temp_dir, platform, west_cmd, tvm_debug):
@tvm.testing.requires_micro
def test_qemu_make_fail(temp_dir, platform, west_cmd, tvm_debug):
"""Testing QEMU make fail."""
if platform not in ["host", "mps2_an521"]:
if platform not in ["qemu_x86", "mps2_an521"]:
pytest.skip(msg="Only for QEMU targets.")

model, zephyr_board = PLATFORMS[platform]
Expand Down

0 comments on commit 10fca9c

Please sign in to comment.