aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2023-12-27 12:29:39 +0100
committerEgor Tensin <egor@tensin.name>2023-12-27 12:31:10 +0100
commita7536faa9ab7882ad6701141c7b7c537a41108bb (patch)
treea8333d18bfa23da796f7bfd111ffb6643873ca17 /test/py
parentswitch to egor@tensin.name (diff)
downloadcimple-a7536faa9ab7882ad6701141c7b7c537a41108bb.tar.gz
cimple-a7536faa9ab7882ad6701141c7b7c537a41108bb.zip
test: exclude flame graph tests by default
Diffstat (limited to 'test/py')
-rw-r--r--test/py/test_repo.py2
1 files changed, 2 insertions, 0 deletions
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)