[execution] Add a test for context cancelation

fxrev.dev/546922 ensures that `Exec()` will return a context.Canceled
error if the command fails due to a context cancelation, so add a test
to make sure that we preserve that behavior, since it's important for
producing understandable error messages.

Change-Id: I1bf5621b85006196223d37e882e65d262626e9b6
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/547941
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Mahesh Saripalli <maheshsr@google.com>
1 file changed
tree: b2d95c26e58494b0de932760537acc9dd6ef1d19
  1. artifacts/
  2. buildbucket/
  3. checkout/
  4. cmd/
  5. codifier/
  6. digest/
  7. execution/
  8. gerrit/
  9. gitiles/
  10. monorail/
  11. serial/
  12. third_party/
  13. .gitignore
  14. AUTHORS
  15. go.mod
  16. go.sum
  17. LICENSE
  18. MAINTAINERS
  19. manifest
  20. PATENTS
  21. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.