diff options
author | Yiming Pan <yimingpan@google.com> | 2020-07-09 00:10:11 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-09 00:10:11 +0000 |
commit | dd63068b404802e703e65ee075e10f9ff5026606 (patch) | |
tree | 1d24eed521b40b7611329d8a1510e00f6d15e44c | |
parent | 6997f51f29abe4a0b74f57dc771de1f006595ff9 (diff) | |
parent | 4dc1e2e80c6c0b325628d33d1d93962a3ba882cc (diff) | |
download | tradefederation-dd63068b404802e703e65ee075e10f9ff5026606.tar.gz |
Merge "Mitigate the flake caused by testRun_withParFileNameOption_binaryNotFound." am: e2034d5d0f am: 9eb9ee2a8c am: 4dc1e2e80c
Original change: https://android-review.googlesource.com/c/platform/tools/tradefederation/+/1357926
Change-Id: I644b0cfd735cac354d880198d81c247379862909
-rw-r--r-- | tests/src/com/android/tradefed/testtype/mobly/MoblyBinaryHostTestTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/com/android/tradefed/testtype/mobly/MoblyBinaryHostTestTest.java b/tests/src/com/android/tradefed/testtype/mobly/MoblyBinaryHostTestTest.java index 9aec77f49..c681fc7c5 100644 --- a/tests/src/com/android/tradefed/testtype/mobly/MoblyBinaryHostTestTest.java +++ b/tests/src/com/android/tradefed/testtype/mobly/MoblyBinaryHostTestTest.java @@ -43,6 +43,8 @@ import com.android.tradefed.util.FileUtil; import com.android.tradefed.util.IRunUtil; import com.android.utils.FileUtils; +import com.google.common.base.Throwables; + import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -175,6 +177,9 @@ public class MoblyBinaryHostTestTest { } catch (RuntimeException e) { verify(mSpyTest, never()).reportLogs(any(), any()); assertEquals( + String.format( + "An unexpected exception was thrown, full stack trace: %s", + Throwables.getStackTraceAsString(e)), e.getMessage(), String.format("Couldn't find a par file %s", mMoblyBinary2.getName())); } |