]> 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() 40881/head
authorKefu Chai <kchai@redhat.com>
Fri, 16 Apr 2021 04:09:14 +0000 (12:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Apr 2021 08:11:30 +0000 (16:11 +0800)
commitf2e0770c276e6fffa01a0bcb2d969f02ee1aafef
treefc8752132d49f4a02373a9400dad797191a89a59
parent3903a71a6091847e86a9a27556e1f6af871e70ff
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>
qa/workunits/mon/test_mon_config_key.py