From dce2760816a99b6f9172a035fc28d585e6f5fbf5 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Feb 23 2018 15:11:02 +0000 Subject: tests: use python 3, add makefile Signed-off-by: Tomas Tomecek --- diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..c08d55f --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,6 @@ +.PHONY: check + +QCOW_IMG := atomic.qcow2 + +check: + TEST_SUBJECTS=$(QCOW_IMG) ansible-playbook -t atomic -e ansible_python_interpreter=/usr/bin/python3 -i /usr/share/ansible/inventory/standard-inventory-qcow2 ./tests.yml diff --git a/tests/integration.yml b/tests/integration.yml index 6a47a35..96f2eaf 100644 --- a/tests/integration.yml +++ b/tests/integration.yml @@ -22,10 +22,10 @@ - classic with_items: - python-docker-tests - - python2-pytest + - python3-pytest - name: Install pytest and the test-suite on Atomic Host - shell: rpm-ostree install python2-pytest python-docker-tests && rpm-ostree ex livefs + shell: rpm-ostree install python3-pytest python-docker-tests && rpm-ostree ex livefs tags: - atomic @@ -41,7 +41,7 @@ block: - name: Run integration test-suite on Atomic Host # -k "test_create_with_restart_policy" for local testing - shell: py.test -v ./tests/integration/ | tee {{ remote_artifacts }}/test.log + shell: py.test-3 -v ./tests/integration/ | tee {{ remote_artifacts }}/test.log args: chdir: /usr/libexec/installed-tests/python-docker/ always: @@ -60,7 +60,7 @@ - name: Run integration test-suite locally # -k "test_create_with_restart_policy" for local testing - shell: py.test -v ./tests/integration/ | tee {{ artifacts_abs.stdout }}/test.log + shell: py.test-3 -v ./tests/integration/ | tee {{ artifacts_abs.stdout }}/test.log args: chdir: /usr/libexec/installed-tests/python-docker/ tags: