]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)
authorZachary Ware <zachary.ware@gmail.com>
Sun, 24 Jun 2018 15:53:42 +0000 (10:53 -0500)
committerGitHub <noreply@github.com>
Sun, 24 Jun 2018 15:53:42 +0000 (10:53 -0500)
(cherry picked from commit 3f197f94d67be25d5489e14f2f06b4a00e818747)

.vsts/linux-buildbot.yml
.vsts/linux-coverage.yml
.vsts/linux-deps.yml
.vsts/linux-pr.yml

index 76222d10c48e4cf96cdd23e7b054792165e89b9d..4c01bdd165d12ddbef33dae96517b8c63a847436 100644 (file)
@@ -49,6 +49,7 @@ steps:
     liblzma-dev
     libffi-dev
     uuid-dev
+    xvfb
   displayName: 'Install dependencies'
 
 - script: ./configure --with-pydebug
@@ -60,5 +61,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'
index d16d9c9dfa2010edda67dc6bfffe953b233fc015..1bf7ae737c5a98bac303423bae6c72f3be05e39c 100644 (file)
@@ -48,6 +48,7 @@ steps:
     liblzma-dev
     libffi-dev
     uuid-dev
+    xvfb
   displayName: 'Install dependencies'
 
 
@@ -63,7 +64,7 @@ steps:
 - script: ./venv/bin/python -m test.pythoninfo
   displayName: 'Display build info'
 
-- script: ./venv/bin/python -m coverage run --pylib -m test -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 -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)
index 540b76ec54c38455ea63d4f80c8e40a63944cc3c..d1922a7c32377d7d075b80fdf9f42bd7f252cd7a 100644 (file)
@@ -27,4 +27,5 @@ steps:
     liblzma-dev
     libffi-dev
     uuid-dev
+    xvfb
   displayName: 'Install dependencies'
index 83df9b436881d726218e8819145fcf1b5c1ab91f..110c188ab94faefae8faf87e546f0b4bbf9e91b3 100644 (file)
@@ -48,6 +48,7 @@ steps:
     liblzma-dev
     libffi-dev
     uuid-dev
+    xvfb
   displayName: 'Install dependencies'
 
 
@@ -64,5 +65,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'