public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Tomecek <ttomecek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-docker] epel10.2: make sure the test suite runs in a root podman cont
Date: Tue, 13 Oct 2026 18:29:36 GMT	[thread overview]
Message-ID: <179191617660.1.6659918361957122308.rpms-python-docker-1acadc716279@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-docker
            Branch : epel10.2
            Commit : 1acadc71627966176b2eea7527008f74a952fcb7
            Author : Tomas Tomecek <ttomecek@redhat.com>
            Date   : 2019-01-04T12:22:50+01:00
            Stats  : +12/-7 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-docker/c/1acadc71627966176b2eea7527008f74a952fcb7?branch=epel10.2

            Log:
            make sure the test suite runs in a root podman cont

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

---
diff --git a/tests/Makefile b/tests/Makefile
index 7208313..0e51fdb 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -18,6 +18,7 @@ build:
 check-in-container:
 	sudo podman run --rm \
 		-v $(CURDIR):/src \
+		--net host \
 		-w /src \
 		-v /var/run/docker.sock:/var/run/docker.sock \
 		$(TESTS_IMAGE) \

diff --git a/tests/tests.yml b/tests/tests.yml
index ea4b523..266ff96 100644
--- a/tests/tests.yml
+++ b/tests/tests.yml
@@ -1,16 +1,25 @@
 - name: Run the tests
   vars:
     req_services: []  # don't name this required_services, it would be endless loop
+    req_pkgs:
+    - python-docker-tests
+    - python3-mock
+    - python3-pytest
+    - python3-docker
   hosts: all
   tasks:
   - name: check if we are running in a container
     command: systemctl
     register: in_host
     ignore_errors: true
-  - name: add docker to req_services if we are not in a dkr cont
+  - name: add docker to req_services if we are not in a container
     set_fact:
       req_services: ["docker"]
     when: in_host.rc == 0
+  - name: add docker to req_pkgs if we are not in a container
+    set_fact:
+      req_pkgs: '{{ req_pkgs }} + [ "docker" ]'
+    when: in_host.rc == 0
   - name: run them tests
     include_role:
       name: standard-test-basic
@@ -22,10 +31,5 @@
           run: pytest-3 -v /usr/libexec/installed-tests/python-docker/tests/unit/
       - integration:
           run: pytest-3 -v /usr/libexec/installed-tests/python-docker/tests/integration/
-      required_packages:
-      - python-docker-tests
-      - python3-mock
-      - python3-pytest
-      - python3-docker
-      - docker  # TODO: dont install when in a container
+      required_packages: '{{ req_pkgs }}'
       required_services: '{{ req_services }}'

                 reply	other threads:[~2026-10-13 18:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179191617660.1.6659918361957122308.rpms-python-docker-1acadc716279@fedoraproject.org \
    --to=ttomecek@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox