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 invocation of tests
Date: Tue, 13 Oct 2026 18:28:34 GMT [thread overview]
Message-ID: <179191611447.1.9227158841515894544.rpms-python-docker-8196204885c8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-docker
Branch : epel10.2
Commit : 8196204885c8b2c7aae8b68eec9c4349e1706ca7
Author : Tomas Tomecek <ttomecek@redhat.com>
Date : 2019-01-04T12:22:50+01:00
Stats : +6/-6 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-docker/c/8196204885c8b2c7aae8b68eec9c4349e1706ca7?branch=epel10.2
Log:
fix invocation of tests
* correctly define the inv file
* use include (static) over import (dynamic)
* use systemctl to detect if we are in a cont
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
---
diff --git a/tests/inventory-localhost b/tests/inventory-localhost
index 2fbb50c..2302eda 100644
--- a/tests/inventory-localhost
+++ b/tests/inventory-localhost
@@ -1 +1 @@
-localhost
+localhost ansible_connection=local
diff --git a/tests/tests.yml b/tests/tests.yml
index 511e457..ca82d2d 100644
--- a/tests/tests.yml
+++ b/tests/tests.yml
@@ -4,15 +4,15 @@
hosts: all
tasks:
- name: check if we are running in a container
- stat:
- path: /.dockerenv
- register: in_docker_cont
+ command: systemctl
+ register: in_host
+ ignore_errors: true
- name: add docker to req_services if we are not in a dkr cont
set_fact:
req_services: ["docker"]
- when: not in_docker_cont.stat.exists
+ when: in_host.rc == 0
- name: run them tests
- import_role:
+ include_role:
name: standard-test-basic
tags:
- classic
reply other threads:[~2026-10-13 18:28 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=179191611447.1.9227158841515894544.rpms-python-docker-8196204885c8@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