Megatest

Diff
Login

Differences From Artifact [1c3d05010f]:

To Artifact [6b543e5097]:


348
349
350
351
352
353
354
355
356
357



358
359

360
361
362
363
364
365
366
348
349
350
351
352
353
354



355
356
357


358
359
360
361
362
363
364
365







-
-
-
+
+
+
-
-
+







	   (args:get-arg "-one-pass"))
      (exit 0))

  (if (runs:dat-load-mgmt-function runsdat)((runs:dat-load-mgmt-function runsdat)))

  (let* ((num-running             (rmt:get-count-tests-running run-id)) 
	 (num-running-in-jobgroup (rmt:get-count-tests-running-in-jobgroup run-id jobgroup))
	 (job-group-limit         (let ((jobg-count (configf:lookup *configdat* "jobgroups" jobgroup)))
				    (if (string? jobg-count)
					(string->number jobg-count)
	 (job-group-limit         (configf:lookup-number *configdat* "jobgroups" jobgroup)))
    (if (and (number? num-running)                   ;; checking for number - had a crash where a non-number was returned. Not sure why.
	     (number? num-running-in-jobgroup)       ;; probably can remove this when rmt switches away from http.
					jobg-count))))
    (if (> (+ num-running num-running-in-jobgroup) 0)
	     (> (+ num-running num-running-in-jobgroup) 0))
	(runs:inc-can-run-more-tests-count runsdat)) ;; (set! *runs:can-run-more-tests-count* (+ *runs:can-run-more-tests-count* 1)))
    (if (not (eq? *last-num-running-tests* num-running))
	(begin
	  (debug:print 2 *default-log-port* "max-concurrent-jobs: " max-concurrent-jobs ", num-running: " num-running)
	  (set! *last-num-running-tests* num-running)))
    (if (not (eq? 0 *globalexitstatus*))
	(list #f num-running num-running-in-jobgroup max-concurrent-jobs job-group-limit)