c0013_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 -> c0013
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/c0013
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
-------full vars in scopes------
(*impl.Scopes)(0xc0001befe0)(<nil>)
---------group vars----------
global: (*core.Cache)({
})
groups members:[]
merged[ dev ] runtime vars:
(*core.Cache)({
"e": "runtime-e",
"k": "runtime-k",
"studentname": "Jason",
"a": "runtime-a"
})
(*core.Cache)(0xc00000e908)((len=4) {
(string) (len=1) "a": (string) (len=9) "runtime-a",
(string) (len=1) "e": (string) (len=9) "runtime-e",
(string) (len=1) "k": (string) (len=9) "runtime-k",
(string) (len=11) "studentname": (string) (len=5) "Jason"
})
[runtime global] dvar expanded result:
{
}
-------runtime global final merged with dvars-------
(*core.Cache)({
"e": "runtime-e",
"k": "runtime-k",
"studentname": "Jason",
"a": "runtime-a"
})
located task-> 1 [task]:
Task1: [task ==> task: ]
Executing task stack layer: 1
-Step1: [step1: to test display env vars from shell context ]
{
Name: "step1",
Do: {
"echo \"hello, world\"",
"echo \"hello {{.studentname}}\""
},
Dox: <nil>,
Func: "shell",
Vars: {
"studentname": "Tom",
"school": "SG"
},
Dvars: <nil>,
Desc: "to test display env vars from shell context",
Reg: "",
Flags: <nil>,
If: "",
Else: <nil>,
Loop: <nil>,
Until: "",
RefDir: "",
VarsFile: "",
Timeout: 0,
Finally: <nil>,
Rescue: false
}
current exec runtime vars:
(*core.Cache)({
"k": "runtime-k",
"studentname": "Tom",
"a": "runtime-a",
"up_runtime_task_layer_number": 0,
"school": "SG",
"e": "runtime-e"
})
[local] dvar expanded result:
{
}
scope[local] merged: {
"a": "runtime-a",
"up_runtime_task_layer_number": 0,
"school": "SG",
"e": "runtime-e",
"k": "runtime-k",
"studentname": "Tom"
}
self: final context exec vars:
(*core.Cache)({
"e": "runtime-e",
"k": "runtime-k",
"studentname": "Tom",
"a": "runtime-a",
"up_runtime_task_layer_number": 0,
"school": "SG"
})
cmd( 1):
echo "hello, world"
cmd=>:
echo "hello, world"
-
hello, world
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=19) "echo \"hello, world\"",
Code: (int) 0,
Output: (string) (len=12) "hello, world",
ErrMsg: (string) ""
}
cmd( 2):
echo "hello {{.studentname}}"
cmd=>:
echo "hello Tom"
-
hello Tom
-
.. ok
(utils.ExecResult) {
Cmd: (string) (len=16) "echo \"hello Tom\"",
Code: (int) 0,
Output: (string) (len=9) "hello Tom",
ErrMsg: (string) ""
}
. ok
Logs with different verbose level
References