guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: kcrash: Work around race condition when starting Xvfb.


From: Ludovic Courtès
Subject: 01/01: gnu: kcrash: Work around race condition when starting Xvfb.
Date: Sat, 7 Jan 2017 12:19:59 +0000 (UTC)

civodul pushed a commit to branch staging
in repository guix.

commit 7932b91dc1c0be2c7b89b1f972a7d61801fe0986
Author: Ludovic Courtès <address@hidden>
Date:   Sat Jan 7 13:07:29 2017 +0100

    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.
---
 gnu/packages/kde-frameworks.scm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 94145fb..36c2851 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";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]