[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