]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
pytest: fix asset list extraction from nghttp output
authorRainer Jung <rjung@apache.org>
Tue, 25 Jun 2024 09:24:48 +0000 (09:24 +0000)
committerRainer Jung <rjung@apache.org>
Tue, 25 Jun 2024 09:24:48 +0000 (09:24 +0000)
Provided by rpluem.

Backport of r1918576 from trunk.
CTR.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1918577 13f79535-47bb-0310-9956-ffa450edef68

test/pyhttpd/nghttp.py

index 43721f599abf74dc21c14621ce8a8a2d8c51d478..e857e9505a3121e38382ecf9c4d8cd6a4d3756d3 100644 (file)
@@ -224,7 +224,7 @@ class Nghttp:
         if 0 == r.exit_code:
             lines = re.findall(r'[^\n]*\n', r.stdout, re.MULTILINE)
             for lidx, l in enumerate(lines):
-                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/(.*)', l)
+                m = re.match(r'\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/*(/.*)', l)
                 if m:
                     assets.append({
                         "path": m.group(7),