mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Saving test artifacts in TAPL when the failure is diagnosed" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
edfa8480a9
@@ -205,11 +205,10 @@ public class NavigationModeSwitchRule implements TestRule {
|
||||
boolean condition, Description description) {
|
||||
launcher.checkForAnomaly(true, true);
|
||||
if (!condition) {
|
||||
final AssertionError assertionError = new AssertionError(message);
|
||||
if (description != null) {
|
||||
FailureWatcher.onError(launcher, description, assertionError);
|
||||
FailureWatcher.onError(launcher, description);
|
||||
}
|
||||
throw assertionError;
|
||||
throw new AssertionError(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,11 +130,10 @@ public class TaskbarModeSwitchRule implements TestRule {
|
||||
boolean condition, Description description) {
|
||||
launcher.checkForAnomaly(true, true);
|
||||
if (!condition) {
|
||||
final AssertionError assertionError = new AssertionError(message);
|
||||
if (description != null) {
|
||||
FailureWatcher.onError(launcher, description, assertionError);
|
||||
FailureWatcher.onError(launcher, description);
|
||||
}
|
||||
throw assertionError;
|
||||
throw new AssertionError(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user