command: fix flaky test If `exec` times out, we need to wrap the error it died with, rather than embedding it in another error. This allows `TestRunWithTimeoutReturnsErrorOnTimeout`'s `errors.Is` to correctly detect that `err` is a `context.DeadlineExceeded`. BUG=None TEST=ran this test 1000x Change-Id: I69e0dcea25dfd0cb01ac5ec0a2e8ce2f116deff7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3932869 Auto-Submit: George Burgess <gbiv@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
toolchain-utilsVarious utilities used by the ChromeOS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help, or refer to the header of the script for more information.