github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/f0088.yml (about)

     1  goal:
     2    - test MaxCallLayers
     3    - if MaxCallLayers==0, it means unlimted layers, user is responsible for its behavior
     4    - if MaxCallLayers!=0, it will quit once max layers exceeds the configured number
     5  
     6  tasks:
     7    -
     8      name: task
     9      task:
    10        -
    11          func: call
    12          do:
    13            - '{{.loopitem}}'
    14          loop: [impl1, impl2]
    15  
    16  
    17    -
    18      name: impl1
    19      task:
    20  
    21        -
    22          func: cmd
    23          do:
    24            - name: print
    25              cmd: hello
    26  
    27    -
    28      name: impl2
    29      task:
    30  
    31        -
    32          func: cmd
    33          do:
    34            - name: print
    35              cmd: world
    36  
    37        -
    38          func: call
    39          do:
    40            - task
    41