Skip to content

Commit 68ecbbc

Browse files
misc(disk_perf): add marks and job definition
Signed-off-by: Mathieu Labourier <[email protected]>
1 parent a1f9b10 commit 68ecbbc

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

jobs.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,19 @@
143143
"markers": "quicktest and not sr_disk_4k",
144144
"name_filter": "not linstor and not zfsvol",
145145
},
146+
"storage-benchmarks": {
147+
"description": "runs disk benchmark tests",
148+
"requirements": [
149+
"A local SR on host A1"
150+
"A small VM that can be imported on the SR",
151+
"Enough storage space to store the largest test file (numjobs*memory*2)G"
152+
],
153+
"nb_pools": 1,
154+
"params": {
155+
"--vm": "single/small_vm",
156+
},
157+
"paths": ["tests/storage"],
158+
},
146159
"linstor-main": {
147160
"description": "tests the linstor storage driver, but avoids migrations and reboots",
148161
"requirements": [

tests/storage/benchmarks/test_disk_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def assert_performance_not_degraded(current, previous, threshold=10):
8888

8989
class TestDiskPerf:
9090

91-
@pytest.mark.parametrize("block_size,file_size,rw_mode", test_cases)
91+
@pytest.mark.small_vm
9292
def test_disk_benchmark(
9393
self,
9494
pytestconfig,

0 commit comments

Comments
 (0)