Index: mtut.scm ================================================================== --- mtut.scm +++ mtut.scm @@ -1008,11 +1008,11 @@ (for-each (lambda (area) ;Add code to check whether area is valid (if ;; This code checks whether the target has been passed in via argument, and only runs the specified target - (and (< packets-generated 4) (if (args:get-arg "-target") + (and (< packets-generated (or (configf:lookup mtconf "setup" "max_packets_per_run") 10000)) (if (args:get-arg "-target") (if (string= (args:get-arg "-target") runkey) (area-allowed? area "area-needs-to-be-run" runkey contour #f) #f) (area-allowed? area "area-needs-to-be-run" runkey contour #f))) (let* ((script (car cmd)) (params (cdr cmd)) @@ -1110,11 +1110,11 @@ ;;(push-run-spec torun contour ;; (if optional ;; we need to be able to differentiate same contour, different behavior. ;; (conc runkey ":" optional) ;; NOTE: NOT COMPLETELY IMPLEMENTED. DO NOT USE ;; runkey) ;; key-msg) - ))))))) (filter (lambda (x) (if (not (args:get-arg "-area")) #t (if (string= x (args:get-arg "-area")) #t #f))) all-areas)) + ))))) (print "Skipping due to target or max_packets_per_run") ) ) (filter (lambda (x) (if (not (args:get-arg "-area")) #t (if (string= x (args:get-arg "-area")) #t #f))) all-areas)) ) val-alist)) ;; iterate over the param split by ;\s* ;; fossil scm based triggers ;; ((fossil)