From f3475ae0230f8f08cbbc2a52541b6472d506d107 Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Thu, 5 Mar 2026 12:17:51 +0100 Subject: [PATCH] make integration tests more deterministic --- tests/integration/targets/uv_python/tasks/main.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/uv_python/tasks/main.yaml b/tests/integration/targets/uv_python/tasks/main.yaml index 1a46174647..7833fbcb6f 100644 --- a/tests/integration/targets/uv_python/tasks/main.yaml +++ b/tests/integration/targets/uv_python/tasks/main.yaml @@ -27,6 +27,11 @@ environment: UV_INSTALL_DIR: /usr/local/bin +- name: Check if Python 3.14 exists already + command: uv python find 3.14 + ignore_errors: true + register: check_python_314_exists + - name: Install python 3.14 in check mode uv_python: version: 3.14 @@ -37,7 +42,7 @@ - name: Verify python 3.14 installation in check mode assert: that: - - install_check_mode.changed is true + - install_check_mode.changed == check_python_314_exists.failed - install_check_mode.failed is false - install_check_mode.python_versions | length >= 1 @@ -50,7 +55,7 @@ - name: Verify python 3.14 installation assert: that: - - install_python.changed is true + - install_python.changed == check_python_314_exists.failed - install_python.failed is false - install_python.python_versions | length >= 1 - install_python.python_paths | length >= 1