Commit 63535cea authored by Rémi Duraffort's avatar Rémi Duraffort

lava-slave: raise an exception if setup failed

Closes #8Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <remi.duraffort@linaro.org>
parent b28ae90e
Pipeline #3907 failed with stages
in 8 minutes and 32 seconds
......@@ -34,13 +34,13 @@
name: lava-slave
run:
steps:
{%- for cmd in pre_run_commands|default([]) %}
- {{ cmd -}}
{% endfor %}
- . ../../../secrets
- /bin/echo -e "metadata\ncurve\n public-key = '$SLAVE_PUBLIC'\n secret-key = '$SLAVE_PRIVATE'" > slave.key_secret
- /bin/echo -e "metadata\ncurve\n public-key = '$MASTER_PUBLIC'" > master.key
- lava-test-case lava-slave --shell /usr/bin/timeout --preserve-status {{ timeout }} /usr/bin/lava-slave --hostname {{ lab_name }} --log-file - --level DEBUG --master {{ master_url }} --socket-addr {{ logs_url }} --encrypt --master-cert master.key --slave-cert slave.key_secret
{%- if pre_run_commands|default([]) %}
- "{{ pre_run_commands|join(' || lava-test-raise setup failed"\n - "') }}
{%- endif %}
- ". ../../../secrets"
- "/bin/echo -e \"metadata\ncurve\n public-key = '$SLAVE_PUBLIC'\n secret-key = '$SLAVE_PRIVATE'\" > slave.key_secret"
- "/bin/echo -e \"metadata\ncurve\n public-key = '$MASTER_PUBLIC'\" > master.key"
- "lava-test-case lava-slave --shell /usr/bin/timeout --preserve-status {{ timeout }} /usr/bin/lava-slave --hostname {{ lab_name }} --log-file - --level DEBUG --master {{ master_url }} --socket-addr {{ logs_url }} --encrypt --master-cert master.key --slave-cert slave.key_secret"
timeout:
seconds: {{ job_timeout }}
......
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