Skip to content

Commit

Permalink
Check for toolchain when marking reference system tests (#10659)
Browse files Browse the repository at this point in the history
This mimics the behaviour of aot_test_utils.py to ensure the tests don't start running when the toolchain isn't available.
  • Loading branch information
Mousius committed Mar 25, 2022
1 parent ca82fa0 commit 532b2b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/tvm/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def test_something():
import logging
import os
import platform
import shutil
import sys
import time
import pickle
Expand Down Expand Up @@ -763,7 +764,12 @@ def requires_corstone300(*args):
f : function
Function to mark
"""
_requires_corstone300 = [pytest.mark.corstone300]
_requires_corstone300 = [
pytest.mark.corstone300,
pytest.mark.skipif(
shutil.which("arm-none-eabi-gcc") is None, reason="ARM embedded toolchain unavailable"
),
]
return _compose(args, _requires_corstone300)


Expand Down

0 comments on commit 532b2b4

Please sign in to comment.