github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/modtests/0005/up.yml (about) 1 notes: 2 - see if callers vars could be passed to module's func 3 4 vars: 5 a: caller-global-aaa 6 b: caller-global-bbb 7 e: caller-global-eee 8 tasks: 9 - 10 name: Main 11 desc: main entry 12 task: 13 14 - 15 func: cmd 16 do: 17 - 18 name: inspect 19 desc: the vars in caller before invoking module task 20 cmd: 21 - exec_vars 22 - exec_base_vars 23 24 - 25 func: call 26 do: hello-module.Say_world 27 28 - 29 func: cmd 30 do: 31 - 32 name: inspect 33 desc: the vars in caller after invoking module task 34 cmd: 35 - exec_vars 36 - exec_base_vars 37 38 - 39 name: assert 40 cmd: 41 - '{{eq .a "caller-global-aaa"}}' 42 - '{{eq .b "caller-global-bbb"}}' 43 - '{{eq .c "module-global-ccc"}}' 44 - '{{eq .e "caller-global-eee"}}'