Skip to content

Commit

Permalink
[microTVM][Zephyr] Add skip for AOT test (#8628)
Browse files Browse the repository at this point in the history
* add hex indicator to message

* add pytest skip

* trigger

* trigger
  • Loading branch information
mehrdadh committed Aug 6, 2021
1 parent 40de9ce commit 338940d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/microtvm/zephyr/host_driven/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ size_t TVMPlatformFormatMessage(char* out_buf, size_t out_buf_size_bytes, const

// Called by TVM when an internal invariant is violated, and execution cannot continue.
void TVMPlatformAbort(tvm_crt_error_t error) {
TVMLogf("TVMError: %x", error);
TVMLogf("TVMError: 0x%x", error);
sys_reboot(SYS_REBOOT_COLD);
#ifdef CONFIG_LED
gpio_pin_set(led0_pin, LED0_PIN, 1);
Expand Down
3 changes: 3 additions & 0 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ def _get_message(fd, expr: str):

@tvm.testing.requires_micro
def test_tflite(platform, west_cmd, skip_build, tvm_debug):
if platform not in ["host", "mps2_an521", "nrf5340dk", "stm32l4r5zi_nucleo", "zynq_mp_r5"]:
pytest.skip(msg="Model does not fit.")

"""Testing a TFLite model."""
model, zephyr_board = PLATFORMS[platform]
input_shape = (1, 32, 32, 3)
Expand Down

0 comments on commit 338940d

Please sign in to comment.