]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 22 Mar 2024 15:38:03 +0000 (11:38 -0400)
commit68ad717492bf907547fca44c9e73a79ffe8dda95
treea66d2c85beb457ab4f1a68bdaf357fbebf5403af
parent6b7e5aabf1e93e6116ba2dcbc63d751ae9c781ed
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>
(cherry picked from commit 4cfc5b802f4dcc4dec563b6dbc662feefb8ae951)
qa/tasks/cephfs/mount.py