diff --git a/requirements-common.txt b/requirements-common.txt index 0c939c51..f5fd2121 100644 --- a/requirements-common.txt +++ b/requirements-common.txt @@ -8,3 +8,4 @@ PyYAML==3.11 requests jinja2 rpdb +invoke diff --git a/tasks.py b/tasks.py new file mode 100644 index 00000000..08fa0d01 --- /dev/null +++ b/tasks.py @@ -0,0 +1,16 @@ +#! /usr/bin/python + +from invoke import task + +@task(help={'suse': "run susetests"}) +def leap15(c, suse=True, saltstack.unit=False, saltstack.integration=False): + """ + run leap15 tests + """ + c.run("docker pull dmaiocchi/leap15-salt-toaster") + if suse: + c.run("sandbox/bin/pytest -c ./configs/suse.tests/leap15/products.cfg ./tests") + if saltstack.unit: + c.run("sandbox/bin/pytest -c ./configs/saltstack.unit/leap15/products.cfg ./tests") + if saltstac.integration: + c.run("sandbox/bin/pytest -c ./configs/saltstack.integration/leap15/products.cfg ./tests")