Failing tests of MooseModelTest

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Failing tests of MooseModelTest

Juraj Kubelka-5
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Failing tests of MooseModelTest

Tudor Girba-2
Good spotting.

The reason why this does not appear on Jenkins is that on Jenkins we are running in headless mode, and thus, we do not have a progress bar.

Please commit your fix.

Cheers,
Doru


On Apr 3, 2013, at 3:31 PM, Juraj Kubelka <[hidden email]> wrote:

> Hi,
>
> I have just found, there are two failing tests in MooseModelTest which have not been discovered by Jenkins. I can reproduce it in the newest Jeninks' build moose-latest-dev-4.8 and also in older too. Do you have the same issue?
>
> Methods are #testAsMSEString and #testExport.
>
> Problem is in initialization in method:
>
> ===
> FMRepositoryVisitor>>run
> nb := 0.
> UIManager default
> displayProgress: 'Writing ', printer stream localName
> at: Sensor cursorPoint
> from: 1
> to: self roots size
> during: [ :bar | progBar := bar. self basicRun]
> ===
>
> There is "from: 1" and "to: self roots size". "self roots size" returns 1. And then in method
>
> Job>>progress
> ^ (currentValue - min) / (max - min)
>
> counts "(max - min)" as "(1 - 1)" = 0 and raises ZeroDivide.
>
> Easy fix is to set "from: 0". I would do it, but I hesitate because Jenkins does not introduce this error.
>
> Any idea?
>
> Cheers,
> Jura
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"No matter how many recipes we know, we still value a chef."







_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Failing tests of MooseModelTest

Juraj Kubelka-5
CONTENTS DELETED
The author has deleted this message.