| commit | 220d5572862d2bd41df3a74decb996d067667b6d | [log] [tgz] |
|---|---|---|
| author | Brian Norris <[email protected]> | Thu Aug 29 21:46:50 2024 |
| committer | Chromeos LUCI <[email protected]> | Fri Aug 30 00:41:35 2024 |
| tree | 5bd122fa2c5f56f0219b4afd0ef141f7610e79b2 | |
| parent | f60e4268429376ccd144fa23764b2b1d0e91159b [diff] |
CHROMIUM: test_util_common: Handle fgets() errors, EINTR In $BUG, we're seeing some failures were we get 0 lines of output from a command where we expect *some* stdout. I suspect it may be an fgets() error, where we're terminating the loop prematurely. Similar to https://chromium-review.googlesource.com/c/chromiumos/third_party/libnih/+/5696177 let's just retry if we're getting EINTR. For other errors, dump them so we can see what's going on. BUG=b:360841319 TEST=cros_run_unit_tests Change-Id: I3bdc8c29c58639e030fd7525902f63014a38809f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/upstart/+/5826686 Tested-by: Brian Norris <[email protected]> Commit-Queue: Gwendal Grignou <[email protected]> Commit-Queue: Brian Norris <[email protected]> Reviewed-by: Gwendal Grignou <[email protected]> Auto-Submit: Brian Norris <[email protected]>