Changed (once again) the evaluation delimiters (<| and |>)
This commit is contained in:
@@ -8,7 +8,7 @@ This element is of the following form:
|
||||
|
||||
- group:
|
||||
name: Group Item
|
||||
condition: $| "$(OS)" == "Linux" |
|
||||
condition: <| "$(OS)" == "Linux" |>
|
||||
steps:
|
||||
- unittest_file:
|
||||
test_file: test_prod_alpha_13.py
|
||||
|
||||
@@ -196,8 +196,8 @@ Export attribute
|
||||
key:
|
||||
- GID-1510554_step_1
|
||||
report:
|
||||
reported_list: $| random.sample(range(0,20), k=10) |
|
||||
reported_float: $| math.sqrt(float(1)) |
|
||||
reported_list: <| random.sample(range(0,20), k=10) |>
|
||||
reported_float: <| math.sqrt(float(1)) |>
|
||||
reported_str: This is my reported sentence
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ This element is of the following form:
|
||||
values:
|
||||
key1: value1
|
||||
key2: value2
|
||||
key3: $| $(variable)[$(loop_index)] |
|
||||
key3: <| $(variable)[$(loop_index)] |>
|
||||
|
||||
The ``let`` element is used to set values in the global directory.
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ The parameter file can be specified in the `.tum` file root:
|
||||
|
||||
parameter1: value1
|
||||
parameter2: 1234
|
||||
parameter3: $| 12.34 * 2 |
|
||||
parameter3: <| 12.34 * 2 |>
|
||||
parameter4:
|
||||
- $(parameter1)
|
||||
- $(parameter3)
|
||||
@@ -205,7 +205,7 @@ The variable substitution is recursive and checks all the occurrences of the
|
||||
``$(x)`` pattern in a string.
|
||||
|
||||
It is also possible to perform evaluation of python substrings during parameters passing.
|
||||
It is done by using the ``$| expr |`` pattern in a string.
|
||||
It is done by using the ``<| expr |>`` pattern in a string.
|
||||
`expr` may then be a correct python expression.
|
||||
|
||||
Below are illustrated simple and more complicated cases of expansion and evaluation depending on
|
||||
@@ -218,10 +218,10 @@ their pattern.
|
||||
name: Dynamic variables expansion
|
||||
key: $(test)_PASS
|
||||
values:
|
||||
- expanse_select: $|"$(expanse_select)".replace("o", "a")|
|
||||
- expanse_select: <|"$(expanse_select)".replace("o", "a")|>
|
||||
- expanse_index: $(expanse_index_$(expanse_select))
|
||||
- expanse_table: $(expanse_table_$(expanse_select))
|
||||
- expanse_eval: $|$(expanse_index) == 1|
|
||||
- expanse_eval: <|$(expanse_index) == 1|>
|
||||
|
||||
Test Items
|
||||
--------------------
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user