File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ apt-get install -qy --no-install-recommends omc
26
26
timeout(1 ) {
27
27
// OpenModelica does not like running as root
28
28
sh ' chown -R nobody .'
29
+ sh ' pip2 install pytest'
29
30
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 '
31
32
sh ' python2 setup.py install'
33
+ junit ' py2.xml'
32
34
}
33
35
}
34
36
}
@@ -37,9 +39,11 @@ apt-get install -qy --no-install-recommends omc
37
39
timeout(1 ) {
38
40
// OpenModelica does not like running as root
39
41
sh ' chown -R nobody .'
42
+ sh ' pip3 install pytest'
40
43
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 '
42
45
sh ' python3 setup.py install'
46
+ junit ' py3.xml'
43
47
}
44
48
}
45
49
}
You can’t perform that action at this time.
0 commit comments