{% macro git_repo(url, dir, branch) %}
$ git clone --branch {{ branch }} {{ url }}
$ DUT_IP=<device-ip>
$ scp -r {{ dir }} user@$DUT_IP:
$ ssh user@$DUT_IP
{% endmacro %}
{% macro ostree_preconditions(preconditions) %}
$ git clone --depth 1 --branch {{ precondition.branch }} https://gitlab.apertis.org/tests/{{ precondition.reponame }}
{% endfor %}
$ DUT_IP=<device-ip>
$ scp -r{% for precondition in preconditions %} {{ precondition.reponame }} {% endfor %}user@$DUT_IP:
$ ssh user@$DUT_IP
$ cd {{ preconditions[0].reponame }}
{% endif %}
{% endmacro %}
{% macro install_packages(packages_list) %}
$ sudo mount -o remount,rw /
$ sudo apt install {{ packages_list }}
$ sudo reboot
{% endmacro %}
{% macro modules_preconditions(libname) %}
$ cd /tmp/
$ apt source {{ libname }}
$ chown user:user -R /tmp/{{ libname }}-*
{% endmacro %}