Skip to content

Commit

Permalink
Specify testset for the parallel stages
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Rautiola <[email protected]>
  • Loading branch information
joinemm committed Dec 3, 2024
1 parent 37882da commit eeb703c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ghaf-main-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pipeline {
dir(WORKDIR) {
script {
utils.nix_eval_jobs(targets)
target_jobs = utils.create_parallel_stages(targets,false,failedTargets)
target_jobs = utils.create_parallel_stages(targets, testset='_boot_bat_', failedTargets=failedTargets)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ghaf-nightly-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pipeline {
utils.nix_eval_hydrajobs(hydrajobs_targets)
targets = targets + hydrajobs_targets

target_jobs = utils.create_parallel_stages(targets, skip_hw_test=true)
target_jobs = utils.create_parallel_stages(targets, testset=null)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ghaf-pre-merge-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pipeline {
dir(WORKDIR) {
script {
utils.nix_eval_jobs(targets)
target_jobs = utils.create_parallel_stages(targets)
target_jobs = utils.create_parallel_stages(targets, testset=null)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ghaf-release-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pipeline {
dir(WORKDIR) {
script {
utils.nix_eval_jobs(targets)
target_jobs = utils.create_parallel_stages(targets, skip_hw_test=true)
target_jobs = utils.create_parallel_stages(targets, testset=null)
}
}
}
Expand Down
10 changes: 3 additions & 7 deletions utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ def nix_eval_hydrajobs(List<Map> targets) {
}
}


// , List failedTargets = []
def create_parallel_stages(List<Map> targets, Boolean skip_hw_test=false, List failedTargets = null) {
def create_parallel_stages(List<Map> targets, String testset='_boot_bat_perf_', List failedTargets = null) {
def target_jobs = [:]
targets.each {
def timestampBegin = ""
Expand Down Expand Up @@ -419,10 +417,10 @@ def create_parallel_stages(List<Map> targets, Boolean skip_hw_test=false, List f
}
}

if (!skip_hw_test && it.hwtest_device != null) {
if (testset != null && it.hwtest_device != null) {
stage("Test ${displayName}") {
script {
ghaf_hw_test(targetAttr, it.hwtest_device, '_boot_bat_perf_')
ghaf_hw_test(targetAttr, it.hwtest_device, testset)
}
}
}
Expand All @@ -433,5 +431,3 @@ def create_parallel_stages(List<Map> targets, Boolean skip_hw_test=false, List f
}

return this

////////////////////////////////////////////////////////////////////////////////

0 comments on commit eeb703c

Please sign in to comment.