osmith submitted this change.

View Change

Approvals: pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved
testenv/podman_install: fix regex warning

Fix for the following warning with Python 3.12.3:

…/testenv/podman_install.py:120: SyntaxWarning: invalid escape sequence '\d'
pattern = re.compile("^\d+\.\d+\.\d+$")

Change-Id: I33ef4e16f3d3e4fa627f726d6fddd950b7826620
---
M _testenv/testenv/podman_install.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_testenv/testenv/podman_install.py b/_testenv/testenv/podman_install.py
index adc2d70..9f40388 100644
--- a/_testenv/testenv/podman_install.py
+++ b/_testenv/testenv/podman_install.py
@@ -117,7 +117,7 @@
if testenv.args.binary_repo.endswith(":latest"):
ls_remote = testenv.cmd.run(["git", "ls-remote", "--tags", url], capture_output=True, text=True, no_podman=True)
tags = []
- pattern = re.compile("^\d+\.\d+\.\d+$")
+ pattern = re.compile("^\\d+\\.\\d+\\.\\d+$")
for line in ls_remote.stdout.split("\n"):
if "refs/tags/" in line:
tag = line.split("refs/tags/")[1].split("^")[0]

To view, visit change 40522. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I33ef4e16f3d3e4fa627f726d6fddd950b7826620
Gerrit-Change-Number: 40522
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>