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

     1  
     2  notes:
     3    goal:
     4      - internal test
     5      - do not include into docs
     6      - check that writeFile command do not append
     7  
     8  tasks:
     9    -
    10      name: task
    11      task:
    12  
    13        -
    14          func: cmd
    15          do:
    16            -
    17              name: writeFile
    18              cmd:
    19                content: "hello "
    20                filename: writeFile_test
    21                dir: /tmp
    22  
    23            -
    24              name: readFile
    25              cmd:
    26                filename: writeFile_test
    27                dir: /tmp
    28                reg: hellofile
    29            -
    30              name: print
    31              cmd: '{{.hellofile}}'