diff --git a/.azure-pipelines/templates/steps/tox-steps.yml b/.azure-pipelines/templates/steps/tox-steps.yml index 7a045bf0e..9b6fa2873 100644 --- a/.azure-pipelines/templates/steps/tox-steps.yml +++ b/.azure-pipelines/templates/steps/tox-steps.yml @@ -78,5 +78,5 @@ steps: chmod +x codecov coverage xml ./codecov || echo "Uploading coverage data failed" - condition: and(eq(variables['uploadCoverage'], true), variables['TOXENV'], in(split(variables['TOXENV'], '-').0, 'cover', 'integration')) + condition: and(eq(variables['uploadCoverage'], true), length(split(variables['TOXENV'], '-')), in(split(variables['TOXENV'], '-')[0], 'cover', 'integration')) displayName: Upload coverage data