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

            A new commit has been pushed.

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

            Log:
            fix tests: endless loop of required_services

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

---
diff --git a/tests/tests.yml b/tests/tests.yml
index 6929c66..511e457 100644
--- a/tests/tests.yml
+++ b/tests/tests.yml
@@ -1,16 +1,15 @@
 - name: Run the tests
+  vars:
+    req_services: []  # don't name this required_services, it would be endless loop
   hosts: all
   tasks:
   - name: check if we are running in a container
     stat:
       path: /.dockerenv
     register: in_docker_cont
-  - name: set fact required_services
+  - name: add docker to req_services if we are not in a dkr cont
     set_fact:
-      required_services: []
-  - name: add docker to req_serv if we are not in a dkr cont
-    set_fact:
-      required_services: ["docker"]
+      req_services: ["docker"]
     when: not in_docker_cont.stat.exists
   - name: run them tests
     import_role:
@@ -28,4 +27,4 @@
       - python3-pytest
       - python3-docker
       - docker
-      required_services: '{{ required_services }}'
+      required_services: '{{ req_services }}'

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

only message in thread, other threads:[~2026-10-13 18:28 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:28 [rpms/python-docker] epel10.2: fix tests: endless loop of required_services Tomas Tomecek

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