Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a family is limited, the child tasks are unconstrained. In this case only one family can run at  a time. All the tasks in the family can start at once

Code Block
titleEnsure that only 2 Family can run in parallel
suite test
 limit l1fam 2 
 family f1
     inlimit -n l1fam
     task t1
     task t2
 endfamily
 family f2
     inlimit -n l1fam
     task t1
     task t2
 endfamily
 family f3
     inlimit -n l1fam
     task t1
     task t2
 endfamily
endsuite

In this case, we want family limits, but also want to constrain the tasks, such that one task in the active family can run.

Code Block
titleLimit Family and Task. Here one Family can run, and one task
suite test
 family f4 limit fam 2 
 limit T
 inlimit T
 family f1
     inlimit -n l1fam
     task t1
     task t2
 endfamily
 family family f5f2
     inlimit -n l1fam
     task t1
     task t2
 endfamily
 family f6f3
     inlimit -n l1fam
     task t1
     task t2
 endfamily
endsuite

...