processes management refundation.

Evaluation removed from conditions, let and exit_conditional
This commit is contained in:
2026-01-25 15:03:52 +01:00
parent 929e75215b
commit 60636b4fd2
45 changed files with 863 additions and 752 deletions

View File

@@ -19,10 +19,10 @@
name: Check condition on existing variable (PASS)
key: $(test)_PASS
values:
- $(fn_Dummy_int) > 1
- $(pfn_Dummy_int) > 1
- check:
name: Check condition on existing variable (FAIL)
key: $(test)_FAIL
values:
- '"tailor" in "$(fn_Dummy_str)"'
- '"tailor" in "$(pfn_Dummy_str)"'

View File

@@ -16,17 +16,17 @@
- $(loop_param)
exit_condition:
value: "$(fn_Echo function) > 3"
value: $| $(pfn_Echo function) > 3 |
- let:
name: let
key: $(test)_PASS
eval:
- conditional_exec: "random.randint(1, 2)"
values:
- conditional_exec: $| random.randint(1, 2) |
- console:
name: Console creation
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
doc: Opening the console
key: $(test)_PASS
@@ -37,7 +37,7 @@
- console:
name: Console read_until with timeout
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
key: $(test)_PASS
steps:
@@ -45,7 +45,7 @@
- console:
name: Console write
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
key: $(test)_PASS
steps:
@@ -53,12 +53,12 @@
- sleep:
name: sleep item
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
timeout: 1
- console:
name: Console read_until immediate
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
key: $(test)_PASS
steps:
@@ -66,7 +66,7 @@
- console:
name: Console read_until immediate (2)
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
key: $(test)_PASS
steps:
@@ -74,7 +74,7 @@
- console:
name: Console closure
condition: "$(conditional_exec) == 1"
condition: $| $(conditional_exec) == 1 |
console_name: consname
key: $(test)_PASS
steps:
@@ -82,5 +82,5 @@
- sleep:
name: sleep item
condition: "$(conditional_exec) == 2"
condition: $| $(conditional_exec) == 2 |
timeout: 1

View File

@@ -13,7 +13,7 @@
- group:
name: jsonrpc tests
condition: "'/jrpces' in r'''$(cn_json rpc echo server)'''"
condition: $| '/jrpces' in r'''$(cn_json rpc echo server)''' |
steps:
- console:
name: Start the json rpc echo server

View File

@@ -12,8 +12,7 @@
name: Let it be
values:
it: $(loop_param)
eval:
- be: "$(loop_param) == $(it)"
be: $| $(loop_param) == $(it) |
- loop:
name: Cycle iterating on list
@@ -31,8 +30,7 @@
name: Let it be
values:
- it: $(loop_param)
eval:
- be: "$(loop_param) == $(it)"
- be: $| $(loop_param) == $(it) |
- let:
name: Get time
@@ -45,8 +43,8 @@
- let:
name: Get parameter file value
key: $(test)_PASS
eval:
- test_overwrite_me: "$(overwrite_me) == True"
values:
- test_overwrite_me: $| $(overwrite_me) == True |
- py_func:
name: Check global dic pass
@@ -85,8 +83,8 @@
- let:
name: Evaluate Overwriting parameter file value
key: $(test)_PASS
eval:
- test_overwrite_me: '"$(overwrite_me)" == True'
values:
- test_overwrite_me: $| "$(overwrite_me)" == True |
- check:
name: Check Overwriting parameter file value

View File

@@ -13,14 +13,14 @@ main:
- let:
name: Set test variables for Linux
condition: "'$(os)' == 'Linux'"
condition: $| "$(os)" == "Linux" |
values:
- terminal_prompt: $(linux_prompt)
- psep: "/"
- let:
name: Set test variables for Windows
condition: "'$(os)' == 'Windows'"
condition: $| "$(os)" == "Windows" |
values:
- terminal_prompt: $(windows_prompt)
- psep: "\\"