commit | b815ff854638538db374e0dbbacf58f57facc071 | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Fri May 21 17:50:22 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri May 21 17:50:22 2021 +0000 |
tree | f88c3fc2c47ec4cb06ee1b5a9e5f6614f688d4b0 | |
parent | cd72a7d26590c4f2ab30983da1ce40465b676337 [diff] | |
parent | 9a6ba8cfa4cc66dee1f88b1d0f46ea1eac1be34f [diff] |
Merge "Improving TAPL messaging" into sc-dev am: 9a6ba8cfa4 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669955 Change-Id: I5f77a773dffc3d6731fd1d6d2e12c0c7e1abda0e
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 57f40db..4cf52f0 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -496,13 +496,14 @@ private void fail(String message) { checkForAnomaly(); Assert.fail(formatSystemHealthMessage(formatErrorWithEvents( - "http://go/tapl test failure:\nOverview: " + getContextDescription() + "http://go/tapl test failure:\nSummary: " + getContextDescription() + " - visible state is " + getVisibleStateMessage() + ";\nDetails: " + message, true))); } private String getContextDescription() { - return mDiagnosticContext.isEmpty() ? "" : String.join(", ", mDiagnosticContext); + return mDiagnosticContext.isEmpty() + ? "(no context)" : String.join(", ", mDiagnosticContext); } void assertTrue(String message, boolean condition) {