Commit 00295319 authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Change the rewriter according to the new exitcode rules

parent ca871b0a
Pipeline #1007039 passed with stage
in 1 minute and 33 seconds
......@@ -73,11 +73,12 @@ void TJAlienResultRewriter::RemoveResultCode(TMap *m) {
bool TJAlienResultRewriter::IsSuccess(TJAlienResult* result)
{
auto key = TObjString("error");
if(result && result->GetMetaData(&key)) {
return false;
} else {
auto key = TObjString("exitcode");
if(result && result->GetMetaData(&key) && result->GetMetaData(&key)->IsEqual(new TObjString("0"))) {
return true;
} else {
return false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment