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, )