Skip to content

Commit

Permalink
Enable GUI tests in VSTS Linux builds via xvfb-run (pythonGH-7890)
Browse files Browse the repository at this point in the history
  • Loading branch information
zware committed Jun 24, 2018
1 parent ea73775 commit 3f197f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vsts/linux-buildbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ steps:
liblzma-dev
libffi-dev
uuid-dev
xvfb
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'
Expand All @@ -67,5 +68,5 @@ steps:
- script: make pythoninfo
displayName: 'Display build info'

- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
displayName: 'Tests'
3 changes: 2 additions & 1 deletion .vsts/linux-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ steps:
liblzma-dev
libffi-dev
uuid-dev
xvfb
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'
Expand All @@ -70,7 +71,7 @@ steps:
- script: ./venv/bin/python -m test.pythoninfo
displayName: 'Display build info'

- script: ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
- script: xvfb-run ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
displayName: 'Tests with coverage'

- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)
Expand Down
1 change: 1 addition & 0 deletions .vsts/linux-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ steps:
liblzma-dev
libffi-dev
uuid-dev
xvfb
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'
3 changes: 2 additions & 1 deletion .vsts/linux-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ steps:
liblzma-dev
libffi-dev
uuid-dev
xvfb
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'
Expand All @@ -71,5 +72,5 @@ steps:
- script: ./python Tools/scripts/patchcheck.py --travis true
displayName: 'Run patchcheck.py'

- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
displayName: 'Tests'

0 comments on commit 3f197f9

Please sign in to comment.