Made package test name configurable. (#6268)
This commit is contained in:
Родитель
687ab3caba
Коммит
9dcaa9f715
|
@ -97,6 +97,7 @@ extends:
|
|||
outputArtifactsFolder: $(ob_outputDirectory)
|
||||
pipArtifactFeeds: "mariner/Mariner-Pypi-Feed"
|
||||
selfRepoName: self
|
||||
testSuiteName: "[${{ configuration.name }}] Package test"
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
|
|
|
@ -98,6 +98,10 @@ parameters:
|
|||
type: string
|
||||
default: "srpms.tar.gz"
|
||||
|
||||
- name: testSuiteName
|
||||
type: string
|
||||
default: "Package test"
|
||||
|
||||
steps:
|
||||
- template: ToolkitCheck.yml@${{ parameters.selfRepoName }}
|
||||
parameters:
|
||||
|
@ -220,3 +224,4 @@ steps:
|
|||
buildRepoRoot: ${{ parameters.buildRepoRoot }}
|
||||
failOnTestFailures: ${{ parameters.failOnTestFailures }}
|
||||
outputArtifactsFolder: ${{ parameters.outputArtifactsFolder }}
|
||||
testSuiteName: ${{ parameters.testSuiteName }}
|
||||
|
|
|
@ -14,6 +14,10 @@ parameters:
|
|||
type: string
|
||||
default: "$(Build.ArtifactStagingDirectory)"
|
||||
|
||||
- name: testSuiteName
|
||||
type: string
|
||||
default: "Package test"
|
||||
|
||||
# Local constants. Can't use variables in a template without jobs or stages.
|
||||
- name: reportFileName
|
||||
type: string
|
||||
|
@ -245,7 +249,7 @@ steps:
|
|||
|
||||
logs_dir_path = "${{ parameters.buildRepoRoot }}/build/logs/pkggen/rpmbuilding"
|
||||
report_path = "${{ parameters.testsWorkspace }}/${{ parameters.reportFileName }}"
|
||||
test_suit_name = f"[{machine()}] Package test"
|
||||
test_suit_name = "${{ parameters.testSuiteName }}"
|
||||
|
||||
logger = ADOPipelineLogger()
|
||||
logger.log(f"Analyzing tests results inside '{logs_dir_path}'.")
|
||||
|
|
Загрузка…
Ссылка в новой задаче