Skip to content

Commit c09d39e

Browse files
author
Éric Lemoine
committedMay 16, 2019
Mention xvfb-run in tests/README.md
1 parent b0ae641 commit c09d39e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎tests/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ You could re-run the failing test with:
2929
The parameter `-V` enables verbose mode and `-R` takes a regular expression as
3030
parameter and will only run matching tests.
3131

32-
3332
For python tests, you can run a specific test inside a unit file
3433
with something like this:
3534

@@ -39,6 +38,13 @@ with something like this:
3938
TestQgsVectorLayer.testOverwriteLayer
4039
```
4140

41+
If you get `Could not connect to any X display` errors it means that your build
42+
machine does not have an X server. In that case you need to run the test under
43+
`xvfb-run`. For example:
44+
45+
```
46+
xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest -V -R PyQgsServerWMSGetMap
47+
```
4248

4349
# Advanced configuration
4450

0 commit comments

Comments
 (0)
Please sign in to comment.