[pypy-commit] pypy default: add conftest to skip on non-aarch64

mattip pypy.commits at gmail.com
Tue Jul 16 07:59:09 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r97006:3b62053cc1e4
Date: 2019-07-16 06:53 -0500
http://bitbucket.org/pypy/pypy/changeset/3b62053cc1e4/

Log:	add conftest to skip on non-aarch64

diff --git a/rpython/jit/backend/aarch64/test/conftest.py b/rpython/jit/backend/aarch64/test/conftest.py
new file mode 100644
--- /dev/null
+++ b/rpython/jit/backend/aarch64/test/conftest.py
@@ -0,0 +1,13 @@
+"""
+This disables the backend tests on non ARMv7 platforms.
+Note that you need "--slow" to run translation tests.
+"""
+import py, os
+from rpython.jit.backend import detect_cpu
+
+cpu = detect_cpu.autodetect()
+
+def pytest_collect_directory(path, parent):
+    if not cpu.startswith('aarch64'):
+        py.test.skip("AARCH64 tests skipped: cpu is %r" % (cpu,))
+pytest_collect_file = pytest_collect_directory


More information about the pypy-commit mailing list