Skip to content

Commit 3ed8628

Browse files
committed
quicktest: list SRs only once
The difference is not really measurable. But I found out there is another pre-existing flag that can speed it up, `-default-sr`. Then the leak checks are only done on that SR, and not all the SRs. So the best way is to run this (at least during development): ``` time ./quicktest.exe -run-only Quicktest_vm_lifecycle -skip-stress -default-sr [...] real 0m1.709s ``` Signed-off-by: Edwin Török <edwin.torok@citrix.com>
1 parent 2234cc4 commit 3ed8628

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ocaml/quicktest/qt_filter.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,8 @@ module SR = struct
362362
let list_srs srs = with_xapi_query srs
363363

364364
let f srs tcs =
365-
for_each
366-
(fun test_case -> List.map (specialise test_case) (list_srs srs))
367-
tcs
365+
let srs = list_srs srs in
366+
for_each (fun test_case -> List.map (specialise test_case) srs) tcs
368367
end
369368

370369
let sr = SR.f

0 commit comments

Comments
 (0)