Merge topic 'only-first-output-regex'
12cf7bc
CTest: break after first regex match on output
This commit is contained in:
commit
62a9bdb466
|
@ -166,6 +166,7 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
reason = "Required regular expression found.";
|
reason = "Required regular expression found.";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( !found )
|
if ( !found )
|
||||||
|
@ -196,6 +197,7 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
|
||||||
reason += passIt->second;
|
reason += passIt->second;
|
||||||
reason += "]";
|
reason += "]";
|
||||||
forceFail = true;
|
forceFail = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue