Skip to content
Snippets Groups Projects
Commit 03b1d8e2 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Add sanity-check tests for ostree-based images


Additional flag `ostree` used as argument for test function.
Depending of flag above correct name of image is set.
Only sanity-check tests are enabled for ostree by this patch.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>

Differential Revision: https://phabricator.apertis.org/D7747



Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent a47ba119
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,10 @@ def uploadDirectory(source, target, upload = true) {
}
}
def runTestsJobs(image_name, version, release, type, arch, board, submit = true) {
def runTestsJobs(image_name, profile_name, version, submit = true) {
if (!submit) {
println "Skipping submitting tests jobs"
println "Skipping submitting tests jobs for ${profile_name} ${version}"
return
}
......@@ -55,14 +55,11 @@ def runTestsJobs(image_name, version, release, type, arch, board, submit = true)
branch: test_repo_branch)
}
// TODO: Remove "uefi" once images run in the actual boards
def boardp = (board in ["uefi", "sdk"]) ? "qemu" : board
withCredentials([ file(credentialsId: test_lava_credentials, variable: 'lqaconfig') ]) {
sh(script: """\
/usr/bin/lqa -c ${lqaconfig} submit \
--profile ${osname}-${release}-${type}-${arch}-${boardp} \
-g apertis-tests/templates/profiles.yaml \
--profile ${profile_name} \
-t image_date:${version} \
-t image_name:${image_name}""")
}
......@@ -150,8 +147,17 @@ def buildImage(architecture, type, board, debosarguments = "", sysroot = false,
}
// This stage must be the last in pipeline
stage("Submitting tests jobs (lava)") {
runTestsJobs (image_name, env.PIPELINE_VERSION, release, type, architecture, board, production)
// a failure to submit the tests would break the builds
stage("Submitting tests for ${architecture} ${type} ${board}") {
// TODO: Remove "uefi" once images run in the actual boards
def boardp = (board in ["uefi", "sdk"]) ? "qemu" : board
def profile_name = "${osname}-${release}-${type}-${architecture}-${boardp}"
runTestsJobs (image_name, profile_name, env.PIPELINE_VERSION, production)
if (ostree) {
profile_name = "${osname}_ostree-${release}-${type}-${architecture}-${boardp}"
runTestsJobs (image_name, profile_name, env.PIPELINE_VERSION, production)
}
}
} finally {
......@@ -266,7 +272,7 @@ images["Sdk"] = buildImage("amd64", "sdk", "sdk",
false, false, production)
*/
// Types for all boards, common debos arguments, sysroots and ospacks
// Types for all boards, common debos arguments, sysroots, ospacks and ostree
def types = [ [ "minimal", "", false, true],
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment