]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/internal: fix coredump path split fix-core-split
authorSage Weil <sage@newdream.net>
Thu, 4 Mar 2021 16:28:21 +0000 (10:28 -0600)
committerSage Weil <sage@newdream.net>
Thu, 4 Mar 2021 16:28:21 +0000 (10:28 -0600)
commit166887dce237bc16ba4d591448b1af699882bc2c
tree4c09c72a7c51f0d46d3caaa398c67710dc978fa4
parent3082387bba74fcd24c9700593d10418152d53c97
task/internal: fix coredump path split

If the output is like

 core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'systemd-sysusers', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/bin/systemd-sysusers', platform: 'x86_64'

then there is no space; first discard the ' and what follows, and
then discard anything after the space (if present!)

Signed-off-by: Sage Weil <sage@newdream.net>
teuthology/task/internal/__init__.py