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
1 changed files with 2 additions and 2 deletions

View File

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