mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 764527 - Catch exceptions thrown during robocop tests. r=jmaher
This commit is contained in:
parent
24d43876fd
commit
35421a395a
@ -74,6 +74,20 @@ abstract class BaseTest extends ActivityInstrumentationTestCase2<Activity> {
|
|||||||
mRawBaseUrl = ((String)config.get("rawhost")).replaceAll("(/$)", "");
|
mRawBaseUrl = ((String)config.get("rawhost")).replaceAll("(/$)", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void runTest() throws Throwable {
|
||||||
|
try {
|
||||||
|
super.runTest();
|
||||||
|
} catch (Throwable t) {
|
||||||
|
if (mAsserter != null) {
|
||||||
|
mAsserter.dumpLog("Exception caught during test!", t);
|
||||||
|
mAsserter.ok(false, "Exception caught", t.toString());
|
||||||
|
}
|
||||||
|
// re-throw to continue bail-out
|
||||||
|
throw t;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setTestType(String type) {
|
public void setTestType(String type) {
|
||||||
mTestType = type;
|
mTestType = type;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user