Skip to content
Merged
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
13 changes: 8 additions & 5 deletions .azure/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
QISKIT_SUPPRESS_PACKAGING_WARNINGS: Y
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
QISKIT_TEST_CAPTURE_STREAMS: 1
HAVE_VISUAL_TESTS_RUN: false

steps:
- task: UsePythonVersion@0
Expand Down Expand Up @@ -197,7 +198,9 @@ jobs:
env:
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"

- bash: image_tests/bin/python -m unittest discover -v test/visual
- bash: |
echo "##vso[task.setvariable variable=HAVE_VISUAL_TESTS_RUN;]true"
image_tests/bin/python -m unittest discover -v test/visual
displayName: 'Run image test'
env:
# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to
Expand All @@ -213,7 +216,7 @@ jobs:
archiveType: tar
archiveFile: '$(Build.ArtifactStagingDirectory)/visual_test_failures.tar.gz'
verbose: true
condition: failed()
condition: and(failed(), eq(variables.HAVE_VISUAL_TESTS_RUN, 'true'))

- task: ArchiveFiles@2
displayName: Archive circuit results
Expand All @@ -222,7 +225,7 @@ jobs:
archiveType: tar
archiveFile: '$(Build.ArtifactStagingDirectory)/circuit_results.tar.gz'
verbose: true
condition: failed()
condition: and(failed(), eq(variables.HAVE_VISUAL_TESTS_RUN, 'true'))

- task: ArchiveFiles@2
displayName: Archive graph results
Expand All @@ -231,7 +234,7 @@ jobs:
archiveType: tar
archiveFile: '$(Build.ArtifactStagingDirectory)/graph_results.tar.gz'
verbose: true
condition: failed()
condition: and(failed(), eq(variables.HAVE_VISUAL_TESTS_RUN, 'true'))

- task: PublishBuildArtifacts@1
displayName: 'Publish image test failure diffs'
Expand All @@ -240,4 +243,4 @@ jobs:
artifactName: 'image_test_failure_img_diffs'
Parallel: true
ParallelCount: 8
condition: failed()
condition: and(failed(), eq(variables.HAVE_VISUAL_TESTS_RUN, 'true'))