← Back to team overview

maria-discuss team mailing list archive

Re: New testsuite option

 

Hi, Michal!

On Aug 13, Michal Schorm wrote:
> >
> > What if we just make mtr to do `exit 2` if it exists because of
> > --max-test-fail ?
> 
> I'm afraid that won't help me in any way.
> In such case, still, no matter how many tests fail (if >0), the
> testsuite will fail. With different exit code maybe, but it will fail.

I've had an example in previous email, if mtr would do `exit 2` then
you'll need to run (from the spec file, I presume) something like

  ./mtr --max-test-fail=5; test $? le 2

> I'm looking for an option which would say "If only <N tests failed, return
> success anyway".

And this is exactly what it'll be.
The command above returns success if only <5 tests failed.

Would that work for you?

Regards,
Sergei
Chief Architect MariaDB
and security@xxxxxxxxxxx


References