Disable skipping slow tests
This commit is contained in:
джерело
acbb632daf
коміт
f5b1c258c4
@ -156,16 +156,6 @@ def skip_windows(message="This test is not supported on Windows"):
|
|||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
def slow_test(f):
|
|
||||||
@functools.wraps(f)
|
|
||||||
def wrapper(*args, **kwargs):
|
|
||||||
if ('CI' in os.environ and 'RUN_SLOW' not in os.environ and
|
|
||||||
os.environ.get('TRAVIS_EVENT_TYPE') != 'cron'):
|
|
||||||
raise unittest.SkipTest("Slow test skipped on CI run")
|
|
||||||
return f(*args, **kwargs)
|
|
||||||
return wrapper
|
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
@lru_cache(maxsize=None)
|
||||||
def ensure_available(executable):
|
def ensure_available(executable):
|
||||||
"""
|
"""
|
||||||
|
@ -50,7 +50,6 @@ def test_functest(implementation, impl_path, test_dir,
|
|||||||
)
|
)
|
||||||
@helpers.skip_windows()
|
@helpers.skip_windows()
|
||||||
@helpers.filtered_test
|
@helpers.filtered_test
|
||||||
@helpers.slow_test
|
|
||||||
def test_functest_sanitizers(implementation, impl_path, test_dir,
|
def test_functest_sanitizers(implementation, impl_path, test_dir,
|
||||||
init, destr):
|
init, destr):
|
||||||
dest_dir = os.path.join(test_dir, 'bin')
|
dest_dir = os.path.join(test_dir, 'bin')
|
||||||
|
@ -30,7 +30,6 @@ def valgrind_supports_exit_early():
|
|||||||
for impl in pqclean.Scheme.all_supported_implementations()],
|
for impl in pqclean.Scheme.all_supported_implementations()],
|
||||||
ids=[str(impl) for impl in pqclean.Scheme.all_supported_implementations()],
|
ids=[str(impl) for impl in pqclean.Scheme.all_supported_implementations()],
|
||||||
)
|
)
|
||||||
@helpers.slow_test
|
|
||||||
@helpers.filtered_test
|
@helpers.filtered_test
|
||||||
def test_valgrind(implementation: pqclean.Implementation, impl_path, test_dir,
|
def test_valgrind(implementation: pqclean.Implementation, impl_path, test_dir,
|
||||||
init, destr):
|
init, destr):
|
||||||
|
Завантаження…
Посилання в новій задачі
Block a user