Skip to content

Commit 9d837da

Browse files
committed
test: run perf tests with secret freedom enabled
Get some throughput data from our perf tests with secret freedom enabled. Signed-off-by: Patrick Roy <[email protected]>
1 parent f166343 commit 9d837da

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/conftest.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,20 @@ def io_engine(request):
381381
# the network throughput test occasionally fail (both due to connection issues).
382382
# The block test passes even with the minimum of 1MiB. We pick 8 to have enough
383383
# buffer to the failing cases.
384-
@pytest.fixture(params=[None, 8] if platform.machine() == "aarch64" else [None])
384+
secret_free_test_cases = [None]
385+
if platform.machine() == "aarch64":
386+
secret_free_test_cases.append((8, False))
387+
if global_props.instance != "m6g.metal":
388+
secret_free_test_cases.append((8, True))
389+
390+
391+
@pytest.fixture(params=secret_free_test_cases)
385392
def memory_config(request):
386393
"""Differently configured swiotlb regions. Only supported on aarch64"""
387394
if request.param is None:
388395
return None
389-
return {"initial_swiotlb_size": request.param}
396+
swiotlb_size, secret_free = request.param
397+
return {"initial_swiotlb_size": swiotlb_size, "secret_free": secret_free}
390398

391399

392400
@pytest.fixture

0 commit comments

Comments
 (0)