Commit a4f7af38 authored by Xavier Thompson's avatar Xavier Thompson

slapos-sr-testing: Fix default parameters handling

If `only-sr` is not provided, all the SR tests should run.

Fixes merge request nexedi/slapos!1011
parent e805c344
Pipeline #16879 failed with stage
in 0 seconds
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = 733643122fb75dfd7374b973a95fa2ea md5sum = 2c8b202b0c366e27dd6e6f456fb18256
...@@ -44,7 +44,7 @@ tests = {{ tests | indent(2) }} ...@@ -44,7 +44,7 @@ tests = {{ tests | indent(2) }}
template = template =
inline:{% raw %} inline:{% raw %}
{%- set only_sr = slapparameter_dict.get('only-sr') %} {%- set only_sr = slapparameter_dict.get('only-sr') %}
{%- if not isinstance(only_sr, list) %} {%- if only_sr and not isinstance(only_sr, list) %}
{%- set only_sr = [only_sr] %} {%- set only_sr = [only_sr] %}
{%- endif %} {%- endif %}
{%- set unittest_args = slapparameter_dict.get('unittest-args', ['discover', '-v']) %} {%- set unittest_args = slapparameter_dict.get('unittest-args', ['discover', '-v']) %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment