Till Westmann has submitted this change and it was merged. Change subject: More flexibility for the LangExecutionUtil ......................................................................
More flexibility for the LangExecutionUtil Change-Id: Id2632dce25519995798016b5be1ca650f8af9586 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1507 Sonar-Qube: Jenkins <[email protected]> Tested-by: Jenkins <[email protected]> Integration-Tests: Jenkins <[email protected]> Reviewed-by: Yingyi Bu <[email protected]> --- M asterixdb/asterix-app/src/test/java/org/apache/asterix/test/runtime/LangExecutionUtil.java 1 file changed, 7 insertions(+), 1 deletion(-) Approvals: Yingyi Bu: Looks good to me, approved Jenkins: Verified; No violations found; Verified Objections: Jenkins: Violations found diff --git a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/runtime/LangExecutionUtil.java b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/runtime/LangExecutionUtil.java index ea7e4d6..a20ecc5 100644 --- a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/runtime/LangExecutionUtil.java +++ b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/runtime/LangExecutionUtil.java @@ -92,13 +92,19 @@ } public static void test(TestCaseContext tcCtx) throws Exception { + test(testExecutor, tcCtx); + } + + public static void test(TestExecutor testExecutor, TestCaseContext tcCtx) throws Exception { int repeat = LangExecutionUtil.repeat * tcCtx.getRepeat(); try { for (int i = 1; i <= repeat; i++) { if (repeat > 1) { System.err.print("[" + i + "/" + repeat + "] "); } - librarian.cleanup(); + if (librarian != null) { + librarian.cleanup(); + } testExecutor.executeTest(PATH_ACTUAL, tcCtx, null, false, ExecutionTestUtil.FailedGroup); try { testExecutor.cleanup(tcCtx.toString(), badTestCases); -- To view, visit https://asterix-gerrit.ics.uci.edu/1507 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id2632dce25519995798016b5be1ca650f8af9586 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Till Westmann <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Reviewer: Michael Blow <[email protected]> Gerrit-Reviewer: Till Westmann <[email protected]> Gerrit-Reviewer: Yingyi Bu <[email protected]>
