From 7cb4d7f4d60c7086464c8e8facb71c22a69e0c2c Mon Sep 17 00:00:00 2001 From: Judit Novak Date: Thu, 29 Aug 2024 23:07:04 +0200 Subject: [PATCH] conftest.py fix to find version correctly when fetching old versions for upgrade tests --- tests/integration/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 730486f6..35da09bd 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -189,7 +189,7 @@ def fetch_old_versions(): for commit in last_commits: check_call(f"git checkout {commit}", shell=True) version = check_output( - "grep LIBPATCH lib/charms/data_platform_libs/v0/data_interfaces.py | cut -d ' ' -f 3", + "grep ^LIBPATCH lib/charms/data_platform_libs/v0/data_interfaces.py | cut -d ' ' -f 3", shell=True, universal_newlines=True, )