Disable all tests that depends on X if there is no XServer
- It seems that if the CI is busy (or during maintenance) tests that depends on X fails randomly and frequently.
- For example, in the job https://gitlab.gnome.org/claudioandre/gjs/-/jobs/17485, the first six builds attempts fails with no reasonable reason. The 7th succeeded, also, with no reason.
- We can't blame the docker image since it is immutable since Monday dawn. And I saw no erratic CI behavior on Monday or Tuesday.
That said, I have no idea what (and where) I should change to do something like this:
if (x_check_or_whatever() == X_OK) run_x_tests();
After that, I'll only have to remove the
Could you please help me?