c0044_vvvvv
Log reference:
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0044
Verbose -> vvvvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
:release version: 1.0.0
:verbose level: vvvvv
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0044
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001751c0)(<nil>)
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
})
(*core.Cache)(0xc0000b6910)({
})
dvar> homedir:
"/root"
-
/root
dvar> yourhome:
"Your path is set to /root "
-
Your path is set to /root
[runtime global] dvar expanded result:
{
"homedir": "/root",
"yourhome": "Your path is set to /root "
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"homedir": "/root",
"yourhome": "Your path is set to /root "
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1:
{
Name: "",
Do: {
{
"name": "print",
"cmd": "{{.homedir}}"
},
{
"name": "print",
"cmd": "{{.yourhome}}"
}
},
Dox: <nil>,
Func: "cmd",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0,
"homedir": "/root"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"homedir": "/root",
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0,
"homedir": "/root"
})
{{.homedir}}
~SubStep1: [print: ]
/root
{{.yourhome}}
~SubStep2: [print: ]
Your path is set to /root
-Step2:
{
Name: "",
Do: {
"echo \"\"\"my home is at {{.homedir}}\"\"\"",
"echo \"\"\"my home is at $HOME\"\"\"",
"echo \"\"\"{{.yourhome}}\"\"\""
},
Dox: <nil>,
Func: "shell",
Vars: <nil>,
Dvars: <nil>,
Desc: "",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"homedir": "/root",
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"homedir": "/root",
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0
}
self: final context exec vars:
(*core.Cache)({
"yourhome": "Your path is set to /root ",
"up_runtime_task_layer_number": 0,
"homedir": "/root"
})
cmd( 1):
echo """my home is at {{.homedir}}"""
cmd=>:
echo """my home is at /root"""
-
my home is at /root
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=30) "echo \"\"\"my home is at /root\"\"\"",
Code: (int) 0,
Output: (string) (len=19) "my home is at /root",
ErrMsg: (string) ""
}
cmd( 2):
echo """my home is at $HOME"""
cmd=>:
echo """my home is at $HOME"""
-
my home is at /root
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=30) "echo \"\"\"my home is at $HOME\"\"\"",
Code: (int) 0,
Output: (string) (len=19) "my home is at /root",
ErrMsg: (string) ""
}
cmd( 3):
echo """{{.yourhome}}"""
cmd=>:
echo """Your path is set to /root """
-
Your path is set to /root
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=37) "echo \"\"\"Your path is set to /root \"\"\"",
Code: (int) 0,
Output: (string) (len=25) "Your path is set to /root",
ErrMsg: (string) ""
}
. ok
Logs with different verbose level
References