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: fix running tests locally in a container
Date: Tue, 13 Oct 2026 18:29:41 GMT [thread overview]
Message-ID: <179191618169.1.13518541283648514317.rpms-python-docker-f3141ba9b5b8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-docker
Branch : epel10.2
Commit : f3141ba9b5b839f543ba4654d7667555425973e7
Author : Tomas Tomecek <ttomecek@redhat.com>
Date : 2019-02-27T17:20:38+01:00
Stats : +18/-9 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-docker/c/f3141ba9b5b839f543ba4654d7667555425973e7?branch=epel10.2
Log:
fix running tests locally in a container
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
---
diff --git a/tests/Makefile b/tests/Makefile
index 2e0785d..f922d17 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -10,18 +10,14 @@ check:
check-local:
ansible-playbook -i inventory-localhost -v -e artifacts=$(CURDIR) -c local ./hydrant.yml
-build:
- sudo podman run \
- --name $(WORKING_CONT) \
- $(BASE_IMAGE) \
- dnf install -y standard-test-roles make
- sudo podman commit $(WORKING_CONT) $(TESTS_IMAGE)
- sudo podman rm $(WORKING_CONT)
+build: recipe.yml
+ ansible-bender --debug build ./recipe.yml $(BASE_IMAGE) $(TESTS_IMAGE)
check-in-container:
- sudo podman run --rm \
+ podman run --rm -ti \
-v $(CURDIR):/src \
--net host \
+ -e ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3 \
-w /src \
-v /var/run/docker.sock:/var/run/docker.sock \
$(TESTS_IMAGE) \
diff --git a/tests/integration/runtest.sh b/tests/integration/runtest.sh
old mode 100644
new mode 100755
diff --git a/tests/inventory-localhost b/tests/inventory-localhost
index 2302eda..c1a345d 100644
--- a/tests/inventory-localhost
+++ b/tests/inventory-localhost
@@ -1 +1 @@
-localhost ansible_connection=local
+localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
diff --git a/tests/recipe.yml b/tests/recipe.yml
new file mode 100644
index 0000000..11280e6
--- /dev/null
+++ b/tests/recipe.yml
@@ -0,0 +1,13 @@
+---
+- name: Ansible recipe for a container image where the tests will run
+ hosts: all
+ tasks:
+ - dnf:
+ name:
+ - standard-test-roles
+ - make
+ state: installed
+ - file:
+ src: /usr/bin/python3
+ dest: /usr/bin/python
+ state: link
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=179191618169.1.13518541283648514317.rpms-python-docker-f3141ba9b5b8@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