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.
This commit is contained in:
Ludovic Courtès 2017-01-07 13:07:29 +01:00 committed by Mark H Weaver
parent dca73a742c
commit 9e485ffa1b
No known key found for this signature in database
GPG key ID: 7CEF29847562C516

View file

@ -1300,8 +1300,8 @@ (define-public kcrash
(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")