Align with lib_agc Jenkinsfile regarding unit test operation

This commit is contained in:
mbanth
2021-05-20 15:58:30 +01:00
parent c0dade0156
commit 0e27c7f2ff

9
Jenkinsfile vendored
View File

@@ -40,11 +40,11 @@ pipeline {
dir("${REPO}") { dir("${REPO}") {
dir('tests') { dir('tests') {
dir('xua_unit_tests') { dir('xua_unit_tests') {
viewEnv() {
withVenv { withVenv {
runWaf('.', "configure clean build --target=xcore200") runWaf('.', "configure clean build --target=xcore200")
runWaf('.', "configure clean build --target=xcoreai") runWaf('.', "configure clean build --target=xcoreai")
stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, ' stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
viewEnv() {
runPython("TARGET=XCORE200 pytest -n 1") runPython("TARGET=XCORE200 pytest -n 1")
} }
} }
@@ -59,6 +59,9 @@ pipeline {
agent { agent {
label 'xcore.ai-explorer' label 'xcore.ai-explorer'
} }
options {
skipDefaultCheckout()
}
stages{ stages{
stage('Get View') { stage('Get View') {
steps { steps {
@@ -70,10 +73,10 @@ pipeline {
dir("${REPO}") { dir("${REPO}") {
dir('tests') { dir('tests') {
dir('xua_unit_tests') { dir('xua_unit_tests') {
viewEnv() {
withVenv { withVenv {
unstash 'xua_unit_tests' unstash 'xua_unit_tests'
runPython("TARGET=XCOREAI pytest -n 1 --junitxml pytest_result.xml") viewEnv() {
runPython("TARGET=XCOREAI pytest -s")
} }
} }
} }