File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ apt-get install -qy --no-install-recommends omc
2626 timeout(1 ) {
2727 // OpenModelica does not like running as root
2828 sh ' chown -R nobody .'
29+ sh ' pip2 install pytest'
2930 sh ' sudo -u nobody python2 setup.py build'
30- sh ' sudo -u nobody python2 setup.py test '
31+ sh ' sudo -u nobody py.test -v --junitxml py2.xml tests/*.py '
3132 sh ' python2 setup.py install'
33+ junit ' py2.xml'
3234 }
3335 }
3436 }
@@ -37,9 +39,11 @@ apt-get install -qy --no-install-recommends omc
3739 timeout(1 ) {
3840 // OpenModelica does not like running as root
3941 sh ' chown -R nobody .'
42+ sh ' pip3 install pytest'
4043 sh ' sudo -u nobody python3 setup.py build'
41- sh ' sudo -u nobody python3 setup.py test '
44+ sh ' sudo -u nobody py.test -v --junitxml py3.xml tests/*.py '
4245 sh ' python3 setup.py install'
46+ junit ' py3.xml'
4347 }
4448 }
4549 }
You can’t perform that action at this time.
0 commit comments