]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: use stdin-killer to timeout run_shell_payload
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 24 Jan 2024 02:25:35 +0000 (21:25 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Mar 2024 14:56:56 +0000 (10:56 -0400)
commit4cfc5b802f4dcc4dec563b6dbc662feefb8ae951
treecccde320b506757d478a7383ba39327b5344a412
parentc3707b99c38ab153149684488276c76be6186d8f
qa: use stdin-killer to timeout run_shell_payload

- simplify argument processing / forwarding
- use stdin-killer to kill all sub-processes of the shell
- do not needlessly use run_shell to execute the command as it adds a timeout
  to the stdout/stderr processing
- provide a stdin (PIPE) by default otherwise teuthology's code closes stdin
  and triggers stdin-killer to timeout the shell.
- use a 15 minute timeout by default

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/mount.py