diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-01-07 13:07:29 +0100 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2017-01-11 11:23:41 -0500 |
commit | 9e485ffa1b90e90207f53fcf58f43e29b639f852 (patch) | |
tree | f67343b63fa50ed595d3a1a4832bc469661c40ca /gnu/packages | |
parent | dca73a742c1f67683729eff80fd0ef13f0748052 (diff) | |
download | guix-9e485ffa1b90e90207f53fcf58f43e29b639f852.tar guix-9e485ffa1b90e90207f53fcf58f43e29b639f852.tar.gz |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ 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") |