From a7536faa9ab7882ad6701141c7b7c537a41108bb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 27 Dec 2023 12:29:39 +0100 Subject: test: exclude flame graph tests by default --- test/py/test_repo.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/py/test_repo.py') diff --git a/test/py/test_repo.py b/test/py/test_repo.py index 1850aeb..d68cd4a 100644 --- a/test/py/test_repo.py +++ b/test/py/test_repo.py @@ -103,6 +103,8 @@ def test_repo_stress(env, stress_test_repo, numof_clients, runs_per_client): _test_repo_internal(env, stress_test_repo, numof_clients, runs_per_client) +# Nice workaround to skip tests by default: https://stackoverflow.com/a/43938191 +@pytest.mark.skipif("not config.getoption('flamegraph')") @pytest.mark.flame_graph def test_repo_flame_graph(env, profiler, flame_graph_repo): _test_repo_internal(env, flame_graph_repo, 4, 500) -- cgit v1.2.3