From c6e2bd18e9ba531514252359d0d2496305710eee Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 14 Jun 2023 15:50:25 +0100 Subject: [PATCH] Don't hardcode the python version in the test. Signed-off-by: Pedro Algarvio --- pkg/tests/integration/test_salt_user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/tests/integration/test_salt_user.py b/pkg/tests/integration/test_salt_user.py index d1c8d504fa0..74ec8bb0093 100644 --- a/pkg/tests/integration/test_salt_user.py +++ b/pkg/tests/integration/test_salt_user.py @@ -1,5 +1,6 @@ import pathlib import subprocess +import sys import psutil import pytest @@ -61,7 +62,9 @@ def test_salt_cloud_dirs(install_salt): Test the correct user is running the Salt Master """ paths = [ - "/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/deploy", + "/opt/saltstack/salt/lib/python{}.{}/site-packages/salt/cloud/deploy".format( + *sys.version_info + ), "/etc/salt/cloud.deploy.d", ] for name in paths: