From 9e485ffa1b90e90207f53fcf58f43e29b639f852 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 7 Jan 2017 13:07:29 +0100 Subject: gnu: kcrash: Work around race condition when starting Xvfb. Sometimes tests would start running before Xvfb is listening. See . * 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. --- gnu/packages/kde-frameworks.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 94145fb95d..36c2851567 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -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") -- cgit v1.2.3