Skip to content

Conversation

@jonpryor
Copy link
Contributor

As noted in commit 3b893cd, PR 445 was showing up as a
successful build, while none of the .apk tests ran.

Commit 3b893cd "improves" matters by ensuring that we flag this as an
error, instead of blithely ignoring it.

Unfortunately, knowing that there's an error doesn't help in
diagnosing what the error is. In the case of segmentation faults,
the INSTRUMENTATION_RESULT messages will not be helpful.

What would be helpful is adb logcat output, which we don't
capture.

Let's fix that: if an error occurs -- e.g.
RunInstrumentationTests.FailedToRun is a non-empty string, which is
collected in the @(_FailedComponent) item group -- then we should
run adb logcat -d before terminating the emulator. This will cause
the build and test log output to contain adb logcat output, which
may provide some additional context regarding .apk failures.

As noted in commit 3b893cd, [PR 445][0] was showing up as a
successful build, while none of the .apk tests ran.

Commit 3b893cd "improves" matters by ensuring that we flag this as an
error, instead of blithely ignoring it.

Unfortunately, knowing that there's an error doesn't help in
diagnosing what the error *is*. In the case of segmentation faults,
the `INSTRUMENTATION_RESULT` messages will *not* be helpful.

What *would* be helpful is `adb logcat` output, which we don't
capture.

Let's fix that: if an error occurs -- e.g.
`RunInstrumentationTests.FailedToRun` is a non-empty string, which is
collected in the `@(_FailedComponent)` item group -- then we should
run `adb logcat -d` before terminating the emulator. This will cause
the build and test log output to contain `adb logcat` output, which
may provide *some* additional context regarding .apk failures.

[0]: dotnet#445
@radekdoulik radekdoulik merged commit 5883a5a into dotnet:master Mar 10, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants