public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-docker] epel10.2: tests: use python 3, add makefile
@ 2026-10-13 18:26 Tomas Tomecek
  0 siblings, 0 replies; only message in thread
From: Tomas Tomecek @ 2026-10-13 18:26 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-docker
            Branch : epel10.2
            Commit : dce2760816a99b6f9172a035fc28d585e6f5fbf5
            Author : Tomas Tomecek <ttomecek@redhat.com>
            Date   : 2018-02-23T16:11:02+01:00
            Stats  : +10/-4 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-docker/c/dce2760816a99b6f9172a035fc28d585e6f5fbf5?branch=epel10.2

            Log:
            tests: use python 3, add makefile

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>

---
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:

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 18:26 [rpms/python-docker] epel10.2: tests: use python 3, add makefile Tomas Tomecek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox