Skip to content

Commit 0501a62

Browse files
committed
selftests: fix variable typos
In selftests playbook and template, some of the variables where using block or blktests prefix. Replace them to use selftests instead. Signed-off-by: Daniel Gomez <[email protected]>
1 parent 38b4c8f commit 0501a62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

playbooks/roles/gen_hosts/templates/selftests.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
1515
ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
1616
[dev]
1717
{% if kdevops_baseline_and_dev %}
18-
{% for test_type in blktests_enabled_test_types %}
18+
{% for test_type in selftests_enabled_test_types %}
1919
{{ kdevops_host_prefix }}-{{ test_type }}-dev
2020
{% endfor %}
2121
{% endif %}

playbooks/roles/gen_nodes/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@
375375
vars:
376376
kdevops_config_data: "{{ lookup('file', topdir_path + '/.config') }}"
377377
config_val: "CONFIG_SELFTESTS_SECTION_"
378-
config_block_test_types: "{{ kdevops_config_data | regex_findall('^' + config_val + '(.*)=y$', multiline=True) }}"
379-
config_block_test_type_names: "{{ config_selftests_test_types | lower }}"
378+
config_selftests_test_types: "{{ kdevops_config_data | regex_findall('^' + config_val + '(.*)=y$', multiline=True) }}"
379+
config_selftests_test_type_names: "{{ config_selftests_test_types | lower }}"
380380
all_nodes: "{{ [kdevops_host_prefix + '-'] | product(config_selftests_test_type_names) | map('join') | list }}"
381381
set_fact:
382382
selftests_enabled_test_types: "{{ all_nodes | product(['', '-dev']) | map('join') | list }}"

0 commit comments

Comments
 (0)