Skip to content

Commit 4b3e24b

Browse files
committed
Fixed detection of run for instances with parameters
New way of indexing parameters gives us another option to match runs and instances not relying on indexed value
1 parent 7c79afd commit 4b3e24b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/practitest_firecracker/practitest.clj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,16 @@
319319
(when display-action-logs (log/infof "make-runs"))
320320
(flatten (doall
321321
(for [[test-testset instances] instance-to-ts-test]
322-
(map-indexed
323-
(fn [index instance]
322+
(map
323+
(fn [instance]
324324
(let [[_ test-id] test-testset
325325
tst (first (get test-by-id test-id))
326326
test-name (get tst 0)
327-
params (get test-name-to-params test-name)
328-
this-param (get params index)
327+
this-param (:parameters (:attributes instance))
328+
;; Use nil in case of empty params
329+
this-param (if (empty? this-param)
330+
nil
331+
this-param)
329332
xml-test (get group-xml-tests [test-name this-param])
330333
sys-test (get tst 1)
331334
[run run-steps] (eval/sf-test-suite->run-def options (first xml-test) sys-test this-param)

0 commit comments

Comments
 (0)