This fixes a bug where stderr wasn't checked for the shutdown sequence.
Fix that by waiting for the shutdown to finish and then check stderr.
This fixes a bug where stderr wasn't checked for the shutdown sequence.
Fix that by waiting for the shutdown to finish and then check stderr.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | theStack |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
362 | - self.stdout.close() 363 | - self.stderr.close() 364 | - 365 | del self.p2ps[:] 366 | 367 | + assert not expected_stderr or wait_until_stopped # Must wait to check stderr
nit, logically equivalent, but likely less ambiguous for the reader's eyes:
assert (not expected_stderr) or wait_until_stopped # Must wait to check stderr
thx, done
Code looks good to me, will test locally tomorrow.
ACK faf902858d38150caa8991b0ab9d7cfee2905684
Makes sense to do the stderr check at the very end after shutdown.