Fix: result empty on no run was executed

This commit is contained in:
Roman Mandeleil 2015-01-06 20:47:20 +02:00
parent 02be38a85d
commit c0e2bf2e38
1 changed files with 5 additions and 3 deletions

View File

@ -94,9 +94,11 @@ public class TestRunner {
track.commit();
logger.info("compare results");
// todo: perform logs comparision
List<LogInfo> logs = executor.getResult().getLogInfoList();
List<LogInfo> logs = null;
if (executor.getResult() != null)
logs = executor.getResult().getLogInfoList();
List<String> logResults = testCase.getLogs().compareToReal(logs);
results.addAll(logResults);