By default the the refdir should be from below command line, its value will be: ./tests/functests
up ngo -d ./tests/functests -t $1 -i dev -v vvvv --configdir=./tests/functests
In this case, the refdir is overriden using your own customised location
load dvar using refdir
flow:
-
func: shell
do:
- echo "task step 1"
- echo "task step 2"
vars:
dynadir: ./tests/functests
tasks:
- name: task
ref: c0089-task-main.yml
refdir: '{{.dynadir}}'
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0089
Verbose -> vvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0089
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
loading [flow ref]: ./tests/functests/c0089-task-main.yml
Task1: [task ==> task: ]
-Step1:
self: final context exec vars:
(*core.Cache)({
"dynadir": "./tests/functests",
"up_runtime_task_layer_number": 0
})
cmd( 1):
echo "task step 1"
-
task step 1
-
.. ok
cmd( 2):
echo "task step 2"
-
task step 2
-
.. ok
. ok