~ruther/guix-local

9e485ffa1b90e90207f53fcf58f43e29b639f852 — Ludovic Courtès 9 years ago dca73a7
gnu: kcrash: Work around race condition when starting Xvfb.

Sometimes tests would start running before Xvfb is listening.
See <https://hydra.gnu.org/build/1750201>.

* gnu/packages/kde-frameworks.scm (kcrash)[arguments]: In
'start-xorg-server', add 'sleep' call after starting Xvfb.  Pass "Xvfb"
to 'system' instead of its absolute file name.
1 files changed, 2 insertions(+), 2 deletions(-)

M gnu/packages/kde-frameworks.scm
M gnu/packages/kde-frameworks.scm => gnu/packages/kde-frameworks.scm +2 -2
@@ 1300,8 1300,8 @@ integrated it into your application's other widgets.")
         (add-before 'check 'start-xorg-server
           (lambda* (#:key inputs #:allow-other-keys)
             ;; The test suite requires a running X server.
             (system (string-append (assoc-ref inputs "xorg-server")
                                    "/bin/Xvfb :1 &"))
             (system "Xvfb :1 &")
             (sleep 2)              ;XXX: give the server enough time to start
             (setenv "DISPLAY" ":1")
             #t)))))
    (home-page "https://community.kde.org/Frameworks")