You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/14 21:14:30 UTC

[GitHub] [tvm] tmoreau89 commented on a change in pull request #8955: [Hexagon] Pytestify Hexagon unit test

tmoreau89 commented on a change in pull request #8955:
URL: https://github.com/apache/tvm/pull/8955#discussion_r708637526



##########
File path: tests/python/unittest/test_target_codegen_hexagon.py
##########
@@ -26,8 +26,10 @@
 import tvm.contrib.hexagon as hexagon
 
 
-# Register a phony linker, so that we can test codegen without a Hexagon toolchain.
-hexagon.register_linker(lambda: "/bin/true")
+@pytest.fixture(scope="session", autouse=True)
+def register_linker():
+    # Register a phony linker, so that we can test codegen without a Hexagon toolchain.
+    hexagon.register_linker(lambda: "/bin/true")

Review comment:
       @areusch I believe there is a request here to unregister the global override? @kparzysz-quic let us know if that's something that can be modified in this PR.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org