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

     1  doc_meta: |
     2    folder: shell-func
     3    title: support interactive session
     4    head: |
     5      If there is login shell in interactive session, it will enter the interactive session until the session is exited
     6  
     7    sections:
     8      - title: Demo
     9        log: yes
    10  
    11  tasks:
    12    -
    13      name: task
    14      task:
    15        -
    16          func: shell
    17          desc: |
    18            it will print hello
    19            then traped in a shell session in docker run
    20            once user exits the session
    21            then it will continue the proc to print the world
    22          do:
    23            - echo "hello"
    24            - docker run -it --rm --name cmnix alpine:latest /bin/sh -l
    25            - echo "world"