]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/internal/__init__.py: Revisit core program extraction regex 2026/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 18 Feb 2025 03:56:18 +0000 (13:56 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 21 Mar 2025 05:04:45 +0000 (15:04 +1000)
Fixes: https://tracker.ceph.com/issues/61586
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
teuthology/task/internal/__init__.py

index b9bb0baf85ac02626be094094d288bda061f6fc2..15b8f81f5439bf5d2ce15101c197ba7630a5f5db 100644 (file)
@@ -334,7 +334,8 @@ def fetch_binaries_for_coredumps(path, remote):
                     log.error(e)
                     continue
             try:
-                dump_program = re.findall("from '([^']+)'", dump_out)[0]
+                dump_command = re.findall("from '([^ ']+)", dump_out)[0]
+                dump_program = dump_command.split()[0]
                 log.info(f' dump_program: {dump_program}')
             except Exception as e:
                 log.info("core doesn't have the desired format, moving on ...")