New issue
Advanced search Search tips

Issue 899591 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 1
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Provide a utility function to extract a status code from exit.ExitError

Project Member Reported by nya@chromium.org, Oct 29

Issue description

It's a common task to get a status code when exec.Command failed, but it's a bit tedious to do it every time. It's good to have a utility function in testexec package.

 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/db6ca8585a9c91fc31e26d499b562ca19d430c75

commit db6ca8585a9c91fc31e26d499b562ca19d430c75
Author: Shuhei Takahashi <nya@chromium.org>
Date: Wed Oct 31 15:17:25 2018

testexec: Add GetWaitStatus utility function.

BUG= chromium:899591 
TEST=fast_build.sh -T

Change-Id: I1dd0edab97f848aa6e8858a5df7387854c8bd200
Reviewed-on: https://chromium-review.googlesource.com/1303782
Commit-Ready: Shuhei Takahashi <nya@chromium.org>
Tested-by: Shuhei Takahashi <nya@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Shuhei Takahashi <nya@chromium.org>

[modify] https://crrev.com/db6ca8585a9c91fc31e26d499b562ca19d430c75/src/chromiumos/tast/local/testexec/testexec_test.go
[modify] https://crrev.com/db6ca8585a9c91fc31e26d499b562ca19d430c75/src/chromiumos/tast/local/testexec/testexec.go

Status: Fixed (was: Started)

Sign in to add a comment