Skip to content

Commit

Permalink
[microTVM][Zephyr] Add skip for AOT test (apache#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 11, 2021
1 parent 8a02771 commit 5e87683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
5 changes: 4 additions & 1 deletion tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def _get_message(fd, expr: str):


@tvm.testing.requires_micro
def test_tflite(temp_dir, platform, west_cmd, skip_build, tvm_debug):
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 5e87683

Please sign in to comment.