]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/mon/test_mon_config_key: use subprocess.run() instead of proc.communicate() 42498/head
authorKefu Chai <kchai@redhat.com>
Fri, 16 Apr 2021 04:09:14 +0000 (12:09 +0800)
committerDeepika Upadhyay <dupadhya@redhat.com>
Tue, 27 Jul 2021 04:06:24 +0000 (04:06 +0000)
commita2f2be6fd69dc3e01e9b69c617e82a7c11ba9106
tree19e907f4ba96d7d50c18c1758ebeaa289ca257dc
parentb12540881588c168bb823288e59a0d016f48cb6c
qa/workunits/mon/test_mon_config_key: use subprocess.run() instead of proc.communicate()

the loop of proc.communicate() on python3.6, where we always are able to
get something out of stdout and/or stderr PIPEs. and the `stdout` and
`stderr` keep growing until out of memory. and teuthology considers
the command crashed after a while.

Fixes: https://tracker.ceph.com/issues/50393
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f2e0770c276e6fffa01a0bcb2d969f02ee1aafef)
qa/workunits/mon/test_mon_config_key.py