Skip to content

Commit 3f197f9

Browse files
authored
Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)
1 parent ea73775 commit 3f197f9

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.vsts/linux-buildbot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ steps:
5454
liblzma-dev
5555
libffi-dev
5656
uuid-dev
57+
xvfb
5758
displayName: 'Install dependencies'
5859
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5960
displayName: 'python multissltests.py'
@@ -67,5 +68,5 @@ steps:
6768
- script: make pythoninfo
6869
displayName: 'Display build info'
6970

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

.vsts/linux-coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ steps:
5353
liblzma-dev
5454
libffi-dev
5555
uuid-dev
56+
xvfb
5657
displayName: 'Install dependencies'
5758
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5859
displayName: 'python multissltests.py'
@@ -70,7 +71,7 @@ steps:
7071
- script: ./venv/bin/python -m test.pythoninfo
7172
displayName: 'Display build info'
7273

73-
- 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
74+
- 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
7475
displayName: 'Tests with coverage'
7576

7677
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)

.vsts/linux-deps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ steps:
3131
liblzma-dev
3232
libffi-dev
3333
uuid-dev
34+
xvfb
3435
displayName: 'Install dependencies'
3536
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
3637
displayName: 'python multissltests.py'

.vsts/linux-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ steps:
5353
liblzma-dev
5454
libffi-dev
5555
uuid-dev
56+
xvfb
5657
displayName: 'Install dependencies'
5758
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5859
displayName: 'python multissltests.py'
@@ -71,5 +72,5 @@ steps:
7172
- script: ./python Tools/scripts/patchcheck.py --travis true
7273
displayName: 'Run patchcheck.py'
7374

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

0 commit comments

Comments
 (0)