Hi Björn,

On Thu, 1 Mar 2018 12:29:36 +0100
Björn Höfling <[email protected]> wrote:

> Is there a way to simulate "X" in my packages tests?
> 
> I have a bunch of tests that fail like this:
> 
>  3/15 Test  #3: advancedrenametest ...............***Failed    0.43 sec
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
> '/tmp/guix-build-digikam-
> qt.qpa.screen: QXcbConnection: Could not connect to display 
> Could not connect to any X display.

Please first try (setenv "QT_QPA_PLATFORM" "offscreen").

If that doesn't help then start Xvfb (examples are in gnu/packages/gnome.scm), 
an X server.

(Each build runs in an isolated container so it's fine)


Reply via email to