314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
|
test-name))
(item-path (db:test-get-item-path testdat))
(tl-test-id (rmt:get-test-id run-id test-name ""))
(tl-testdat (rmt:get-test-info-by-id run-id test-id))
(new-state-eh #f)
(new-status-eh #f))
(if (member state '("LAUNCHED" "REMOTEHOSTSTART"))
(rmt:general-call run-id 'set-test-start-time (list test-id)))
(let* ((res (begin
(rmt:test-set-state-status run-id test-id state status comment) ;; this call sets the item state/status
(if (not (equal? item-path "")) ;; only roll up IF incoming test is an item
(let* ((state-status-counts (rmt:get-all-state-status-counts-for-test run-id test-name item-path state status)) ;; item-path is used to exclude current state/status of THIS test
(state-statuses (db:roll-up-rules state-status-counts state status))
(newstate (car state-statuses))
(newstatus (cadr state-statuses)))
|
|
|
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
|
test-name))
(item-path (db:test-get-item-path testdat))
(tl-test-id (rmt:get-test-id run-id test-name ""))
(tl-testdat (rmt:get-test-info-by-id run-id test-id))
(new-state-eh #f)
(new-status-eh #f))
(if (member state '("LAUNCHED" "REMOTEHOSTSTART"))
(rmt:general-call 'set-test-start-time run-id test-id))
(let* ((res (begin
(rmt:test-set-state-status run-id test-id state status comment) ;; this call sets the item state/status
(if (not (equal? item-path "")) ;; only roll up IF incoming test is an item
(let* ((state-status-counts (rmt:get-all-state-status-counts-for-test run-id test-name item-path state status)) ;; item-path is used to exclude current state/status of THIS test
(state-statuses (db:roll-up-rules state-status-counts state status))
(newstate (car state-statuses))
(newstatus (cadr state-statuses)))
|