[pypy-commit] pypy arm-backend-2: use the --slow flag for long running tests

bivab noreply at buildbot.pypy.org
Sat Jul 7 09:50:18 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r55953:5d15d6f01bfa
Date: 2012-07-07 09:28 +0200
http://bitbucket.org/pypy/pypy/changeset/5d15d6f01bfa/

Log:	use the --slow flag for long running tests

diff --git a/pypy/jit/backend/arm/test/support.py b/pypy/jit/backend/arm/test/support.py
--- a/pypy/jit/backend/arm/test/support.py
+++ b/pypy/jit/backend/arm/test/support.py
@@ -27,10 +27,9 @@
     asm.mc._dump_trace(addr, 'test.asm')
     return func()
 
-def skip_unless_run_translation():
-    if not pytest.config.option.run_translation_tests:
-        py.test.skip("Test skipped because --run-translation-tests option is not set")
-
+def skip_unless_run_slow_tests():
+    if not pytest.config.option.run_slow_tests:
+        py.test.skip("use --slow to execute this long-running test")
 
 def requires_arm_as():
     import commands
diff --git a/pypy/jit/backend/arm/test/test_zrpy_gc.py b/pypy/jit/backend/arm/test/test_zrpy_gc.py
--- a/pypy/jit/backend/arm/test/test_zrpy_gc.py
+++ b/pypy/jit/backend/arm/test/test_zrpy_gc.py
@@ -14,8 +14,8 @@
 from pypy.jit.backend.llsupport.gc import GcLLDescr_framework
 from pypy.tool.udir import udir
 from pypy.config.translationoption import DEFL_GC
-from pypy.jit.backend.arm.test.support import skip_unless_run_translation
-skip_unless_run_translation()
+from pypy.jit.backend.arm.test.support import skip_unless_run_slow_tests
+skip_unless_run_slow_tests()
 
 
 class X(object):
diff --git a/pypy/jit/backend/arm/test/test_ztranslation.py b/pypy/jit/backend/arm/test/test_ztranslation.py
--- a/pypy/jit/backend/arm/test/test_ztranslation.py
+++ b/pypy/jit/backend/arm/test/test_ztranslation.py
@@ -9,8 +9,8 @@
 from pypy.jit.codewriter.policy import StopAtXPolicy
 from pypy.translator.translator import TranslationContext
 from pypy.config.translationoption import DEFL_GC
-from pypy.jit.backend.arm.test.support import skip_unless_run_translation
-skip_unless_run_translation()
+from pypy.jit.backend.arm.test.support import skip_unless_run_slow_tests
+skip_unless_run_slow_tests()
 
 class TestTranslationARM(CCompiledMixin):
     CPUClass = getcpuclass()


More information about the pypy-commit mailing list