Generalized run_ut step in Jenkinsfile.

This commit is contained in:
Matthias Koefferlein 2018-06-24 12:30:17 +02:00
parent 03cba76535
commit 4a8c4fef35
1 changed files with 3 additions and 12 deletions

15
Jenkinsfile vendored
View File

@ -37,21 +37,12 @@ node("master") {
},
"Unit testing": {
rel_work_dir = target + "/BUILD/build.linux-release"
work_dir = pwd() + "/" + rel_work_dir
ut_result = "no-result"
withDockerContainer(image: "jenkins-${target}") {
sh """
cd ${work_dir}
set +e
LD_LIBRARY_PATH=. TESTSRC=../../.. TESTTMP=testtmp xvfb-run ./ut_runner -c -a | tee ut_runner.xml
set -e
"""
ut_result = run_ut(target)
}
junit(testResults: "${rel_work_dir}/ut_runner.xml")
junit(testResults: ut_result)
},
"Installtest": {