Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc HW test fixes #66

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ghaf-hw-test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,16 @@ pipeline {
steps {
script {
env.TEST_CONFIG_DIR = 'Robot-Framework/config'
if(!params.getOrDefault('TARGET', null)) {
println "Missing TARGET parameter"
sh "exit 1"
}
println "Using TARGET: ${params.TARGET}"
sh """
mkdir -p ${TEST_CONFIG_DIR}
rm -f ${TEST_CONFIG_DIR}/*.json
ln -sv ${CONF_FILE_PATH} ${TEST_CONFIG_DIR}
echo { \\\"Job\\\": \\\"${BUILD_NUMBER}\\\" } > ${TEST_CONFIG_DIR}/${BUILD_NUMBER}.json
echo { \\\"Job\\\": \\\"${params.TARGET}\\\" } > ${TEST_CONFIG_DIR}/${BUILD_NUMBER}.json
ls -la ${TEST_CONFIG_DIR}
"""
if(!params.containsKey('DESC')) {
Expand Down Expand Up @@ -265,13 +270,14 @@ pipeline {
post {
always {
// Archive Robot-Framework results as artifacts
archiveArtifacts allowEmptyArchive: true, artifacts: 'Robot-Framework/test-suites/**/*.html, Robot-Framework/test-suites/**/*.xml'
archiveArtifacts allowEmptyArchive: true, artifacts: 'Robot-Framework/test-suites/**/*.html, Robot-Framework/test-suites/**/*.xml, Robot-Framework/test-suites/**/*.png'
// Publish all results under Robot-Framework/test-suites subfolders
step(
[$class: 'RobotPublisher',
archiveDirName: 'robot-plugin',
outputPath: 'Robot-Framework/test-suites',
outputFileName: '**/output.xml',
otherFiles: '**/*.png',
disableArchiveOutput: false,
reportFileName: '**/report.html',
logFileName: '**/log.html',
Expand Down
1 change: 1 addition & 0 deletions utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def ghaf_hw_test(String flakeref, String device_config, String testset='_boot_')
string(name: "IMG_URL", value: "$img_url"),
string(name: "DESC", value: "$description"),
string(name: "TESTSET", value: "$testset"),
string(name: "TARGET", value: "$flakeref_trimmed"),
],
wait: true,
)
Expand Down
Loading