Skip to content

Commit

Permalink
add parameter for test qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Jul 1, 2021
1 parent 794141f commit 4359937
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/micro/zephyr/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def pytest_addoption(parser):


def pytest_generate_tests(metafunc):
if "platform" in metafunc.fixturenames:
parametrized_args = [
arg.strip()
for mark in metafunc.definition.iter_markers("parametrize")
for arg in mark.args[0].split(",")
]
if "platform" not in parametrized_args:
metafunc.parametrize("platform", metafunc.config.getoption("microtvm_platforms").split(","))


Expand Down
1 change: 1 addition & 0 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def test_tflite(platform, west_cmd, skip_build, tvm_debug):
assert result == 8


@pytest.mark.parametrize('platform', ["host", "mps2_an521"])
def test_qemu_make_fail(platform, west_cmd, skip_build, tvm_debug):
"""Testing QEMU make fail."""
model, zephyr_board = PLATFORMS[platform]
Expand Down

0 comments on commit 4359937

Please sign in to comment.