Developers' Forum

testing JOBE installation gives 35 passed, 1 failed

 
Picture of stefan weber
Re: testing JOBE installation gives 35 passed, 1 failed
by stefan weber - Thursday, 28 December 2017, 1:36 AM
 
exactly what richard told me to do in his post above mine :)
Picture of Martin Zwerschke
Re: testing JOBE installation gives 35 passed, 1 failed
by Martin Zwerschke - Monday, 12 February 2018, 11:56 PM
 
Having updated my older jobe Server to latest jobe version and to Ubuntu 17.10 I get a similar problem like described in this thread running testsubmit.py:
Python3 program with support files
Jobe result: Successful run

Output:
The first file
Line 2
Second file

=====================================

***************** FAILED TEST ******************

{'run_id': '/home/jobe/runs/jobe_N1P8lg', 'outcome': 15, 'cmpinfo': '', 'stdout': '------------------------------------\n', 'stderr': ''}
Valid Python3/pylint program
Jobe result: Successful run

Output:
------------------------------------


************************************************

=====================================
Invalid Python3/pylint program
Jobe result: Successful run


As you can see, there is no Output like the hint to a missing /etc/pylintrc
I have already checked, that this file was successfully generated.
Picture of Richard Lobb
Re: testing JOBE installation gives 35 passed, 1 failed
by Richard Lobb - Tuesday, 13 February 2018, 10:49 PM
 

Hi Martin

Thanks for the heads up on this.

It seems that the version of pylint3 you get with Ubuntu 17.10 has a new feature called "score", which prints out the score even for a program that passes all the tests. You need to disable the score in the pylintrc file. You can do this by running the following command as root (sudo bash first), which replaces the version in README.md for newer versions of Ubuntu. 

pylint3 --reports=no --score=n --generate-rcfile > /etc/pylintrc
-- Richard
Picture of Martin Zwerschke
Re: testing JOBE installation gives 35 passed, 1 failed
by Martin Zwerschke - Wednesday, 14 February 2018, 4:51 AM
 
Hi Richard,

this worked for me, thanks a lot.

And because I integrated a Mono-C#-Test into testsubmit.py I now have 40 of 40 tests passed.