Include output name with mismatch error message so it's clearer where the failure comes from. (#65)

This commit is contained in:
Scott McKay 2018-11-30 20:34:35 +10:00 committed by GitHub
parent 9b1bc06c34
commit edbe19d22f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -452,8 +452,9 @@ EXECUTE_RESULT DataRunner::RunTaskImpl(size_t task_id) {
res = EXECUTE_RESULT::UNKNOWN_ERROR;
}
}
if (compare_result != COMPARE_RESULT::SUCCESS && !ret.second.empty()) {
LOGF_DEFAULT(ERROR, "%s:%s", test_case_name_.c_str(), ret.second.c_str());
LOGS_DEFAULT(ERROR) << test_case_name_ << ":output=" << output_name << ":" << ret.second;
}
if (compare_result != COMPARE_RESULT::SUCCESS) {
break;